Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Functor instance (Sumit Raja)


----------------------------------------------------------------------

Message: 1
Date: Sun, 4 Mar 2018 18:34:27 +1100
From: Sumit Raja <sumitr...@gmail.com>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] Functor instance
Message-ID:
        <CAD4nrSexJ0TXDmTGUsdHdUyiYny7gYaMrh57j_hD=zsqo0y...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

> I'm trying to implement my own Result type (and yes, I'm aware you can
> abuse Either for this :-) ) but doing something as (seemingly?) simple
> as implementing a Functor instance was surprisingly difficult.
>
Without knowing your final use case are Bifunctors what you are after
(https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-Bifunctor.html)?
I used them when I wanted to fmap Left to convert errors to other
errors.

-Sumit


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 117, Issue 3
*****************************************

Reply via email to