Proposal: die to System.Exit (and/or Prelude)

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Mon Dec 16 13:00:16 UTC 2013


On 16 December 2013 22:15, Roman Cheplyaka <roma at ro-che.info> wrote:
> * Herbert Valerio Riedel <hvr at gnu.org> [2013-12-16 10:53:21+0100]
>> Why not simply use the existing `fail :: String -> IO a` method instead?
>
> The purpose of 'fail' is to handle monadic pattern-match failures.
> I consider explicit use of 'fail' in user code a hack.

Or for use with parser-combinator libraries (though I suppose this
could be seen as a pattern-match failure...)?

>
> Roman
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com


More information about the Libraries mailing list