Hi all,

A why question: Why:

Control.Monad.Error Prelude> runErrorT (fail "msg") :: IO (Either String Int)
Left "msg"

but

Control.Monad.Error Prelude> (fail "msg") :: (Either String Int)
*** Exception: msg

?

-- 
Gracjan



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to