No instance for (Monad ((-) Integer))

2007-02-05 Thread Chad Scherrer
I'm getting this error in ghci, and I think it should typecheck just fine. Prelude let fs = [(+2), (*4)] Prelude :t fs fs :: [Integer - Integer] Prelude :t sequence fs interactive:1:0: No instance for (Monad ((-) Integer)) arising from use of `sequence' at interactive:1:0-10 Possible

Re: No instance for (Monad ((-) Integer))

2007-02-05 Thread Neil Mitchell
Hi Chad, Prelude let fs = [(+2), (*4)] Prelude :t fs fs :: [Integer - Integer] Prelude :t sequence fs I think you need to import Control.Monad.Instances to get the appropriate instance in scope. Thanks Neil ___ Glasgow-haskell-users mailing list

Re: No instance for (Monad ((-) Integer))

2007-02-05 Thread Chad Scherrer
On 2/5/07, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Chad, Prelude let fs = [(+2), (*4)] Prelude :t fs fs :: [Integer - Integer] Prelude :t sequence fs I think you need to import Control.Monad.Instances to get the appropriate instance in scope. Hmm, that's weird. The instance Monad ((-)