
5 Feb
2007
5 Feb
'07
2:57 p.m.
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 fix: add an instance declaration for (Monad ((->) Integer)) I'm using ghc-6.6-3 on Ubuntu edgy, installed as described on Pupeno's web site (http://pupeno.com/2006/12/17/unstable-packages-on-ubuntu/) Could something be installed incorrectly, or am I just misreading the type info? Thanks, Chad