Proposal: Remove the bogus MonadFail instance for ST

Joachim Breitner mail at joachim-breitner.de
Thu Mar 15 03:32:53 UTC 2018


Hi,

Am Mittwoch, den 14.03.2018, 10:34 -0400 schrieb David Feuer:
> That seems reasonable. But I wonder if pattern matching failure in IO
> do should be allowed to slip by silently, or whether we should
> exclude the otherwise-reasonable instance to catch more mistakes.


main = do
 [path] <- getArgs
 … do some stuff…

is a fairly useful and (presumably) common idiom for small, one-off
scripts. I am leaning to keep allowing that.

Cheers,
Joachim

-- 
Joachim Breitner
  mail at joachim-breitner.de
  http://www.joachim-breitner.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180314/4c5ce33a/attachment.sig>


More information about the Libraries mailing list