On Mon, May 16, 2011 at 8:40 PM, Gracjan Polak <gracjanpo...@gmail.com> wrote: > result <- runErrorT $ do > lift $ print "was here" > fail "msg" > > (result = Left "msg") > > after a while the print statement may be removed: > > result <- runErrorT $ do > fail "msg" > > (result = Left "msg")
That seems pretty unlikely for me. If all you have is a "fail", then there is something wrong with this code. If there's anything besides "fail", then removing "runErrorT" would result in a type error. Cheers, =) -- Felipe. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe