Thanks, Brandon. Michael
--- On Sat, 8/28/10, Brandon S Allbery KF8NH <allb...@ece.cmu.edu> wrote: From: Brandon S Allbery KF8NH <allb...@ece.cmu.edu> Subject: Re: [Haskell-cafe] On to applicative To: "michael rice" <nowg...@yahoo.com> Cc: haskell-cafe@haskell.org Date: Saturday, August 28, 2010, 10:43 PM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/28/10 22:15 , michael rice wrote: > Prelude> fmap (*2) l > > <interactive>:1:0: > No instance for (Functor (Either Integer)) > arising from a use of `fmap' at <interactive>:1:0-10 > Possible fix: > add an instance declaration for (Functor (Either Integer)) > In the expression: fmap (* 2) l > In the definition of `it': it = fmap (* 2) l > Prelude> Huh. I understood it to be defined in the Prelude, but didn't check. Looks like it's now in Control.Monad.Instances (a relatively new module). Confusing.... - -- brandon s. allbery [linux,solaris,freebsd,perl] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx5yW0ACgkQIn7hlCsL25VpMACeJR2GVmy1XvOMLtze7s0z3jaZ t5sAnirMJhfh4ZYdMzJBdPbdUs8s166L =OXTs -----END PGP SIGNATURE-----
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe