14 Dec
2013
14 Dec
'13
7:21 p.m.
* Vo Minh Thu <noteed@gmail.com> [2013-12-14 12:09:20+0100]
Isn't your `die` function a special case of `error :: String -> a`, which is in the Prelude ?
There are two differences: * die throws an exception in the IO monad (i.e. it uses `throwIO`, whereas `error` uses `throw`). * error adds "*** Exception: " to the message Roman