[Haskell-cafe] Missing Functor instances in GHC 7?

Sebastian Fischer fischer at nii.ac.jp
Fri Dec 10 06:35:10 CET 2010


Hi Antoine,

On Thu, 2010-12-09 at 23:20 -0600, Antoine Latter wrote:
> Are there any particular ones you're running into problems with?

Yes, I cannot find the instance for ((->) r).

Even if I import

    Control.Monad 
    Control.Monad.Reader
    Control.Applicative 
    Data.Functor 
    Data.Function

I still get

    ghci> ((+) <$> id <*> id) 21
    <interactive>:1:1:
        No instance for (Functor ((->) a))

Sebastian




More information about the Haskell-Cafe mailing list