[Haskell-cafe] Re: How to combine Error and IO monads?
haskell-cafe at catdancer.ws
Fri Dec 8 07:31:25 EST 2006
On 12/7/06, J. Garrett Morris <trevion at gmail.com> wrote:
> foo :: ErrorT String IO Int
> Since ErrorT String IO Int is not the same as IO, you can't use IO
> operations directly. In this case, you want:
> < a <- lift getLine
> You want:
> < r <- runErrorT foo
Wow! I found your help terrific! Thank you! Can I give you some money?
More information about the Haskell-Cafe