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
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
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 ((-)