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.
Edward 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. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
