
-----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] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@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-----