
16 May
2011
16 May
'11
11:49 p.m.
On Mon, May 16, 2011 at 8:40 PM, Gracjan Polak
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.