[Haskell-cafe] On to applicative

michael rice nowgate at yahoo.com
Mon Aug 30 00:50:23 EDT 2010


Hi Ivan,

I already looked there and didn't find anything, but went back and noticed the "Source Code" at the top right of the page and found it there. Why are there two source codes, the one at the top and the ones down the right margin (all the same from what I can tell).

Michael

--- On Mon, 8/30/10, Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com> wrote:

From: Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com>
Subject: Re: [Haskell-cafe] On to applicative
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org, "Brandon S Allbery KF8NH" <allbery at ece.cmu.edu>
Date: Monday, August 30, 2010, 12:36 AM

On 30 August 2010 14:25, michael rice <nowgate at yahoo.com> wrote:
>
> Looks like the fmap definition for the Either functor matches what's given in Learn You A Haskell ...
>
> instance Functor (Either a) where
>    fmap f (Right x) = Right (f x)
>    fmap f (Left x) = Left x
>
> but Hoogle couldn't find Control.Monad.Instances
>
> How else can I look at the code?

http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Control-Monad-Instances.html

--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100829/eb1bd3ce/attachment.html


More information about the Haskell-Cafe mailing list