Hi,
Why does this not function?
Prelude> sequence [print 'a', print 2]
'a'
2
[(),()]
*Prelude> let myprint = print*
*Prelude> sequence [myprint 'a', myprint 2]*
<interactive>:1:18:
Couldn't match expected type `()' against inferred type `Char'
In the first argument of `myprint', namely 'a'
In the expression: myprint 'a'
In the first argument of `sequence', namely
`[myprint 'a', myprint 2]'
Can providing some type annotations (interactively in ghci or in some .hs
file) help solve the problem?
Best Regards,
CS
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe