Every statement in a do-expression has to be in the same monad.

You are mixing the list monad (v0 <- [999]) with the IO monad (putStr "v0=").

Instead of

    v0 <- [999]

try:

    let v0 = [999]

Hope this helps,

Martijn.


Larry Evans wrote:
On 10/17/08 07:39, Larry Evans wrote:
The attached code produces error:
<-- cut here --
[snip]


------------------------------------------------------------------------

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to