[Haskell-cafe] Haskell with all the safeties off

Edward Z. Yang ezyang at MIT.EDU
Fri Sep 7 08:00:01 CEST 2012

Haskell already does this, to some extent, in the design of imprecise
exceptions.  But note that bottom *does* have well defined behavior, so
these "optimizations" are not very desirable.


Excerpts from David Feuer's message of Thu Sep 06 19:35:43 -0400 2012:
> I have no plans to do such a thing anytime soon, but is there a way to tell
> GHC to allow nasal demons to fly if the program forces bottom? This mode of
> operation would seem to be a useful optimization when compiling a program
> produced by Coq or similar, enabling various transformations that can turn
> bottom into non-bottom, eliminating runtime checks in incomplete patterns,
> etc.

More information about the Haskell-Cafe mailing list