
18 Dec
2009
18 Dec
'09
12:22 p.m.
I would like to have a way for Haskell, not to crash, when my coders write pattern matching without the above mentioned general case. Like having the compiler auto-include those general cases for us, but when those cases got hit, then instead of crashing, it should report some error on stdout or stderr. (It would be even nicer if it cold have been traced.)
You should not wait for Haskell prime. What you are asking is already in libraries: http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.2.0.0/Control-E...