[Haskell-cafe] Exception for NaN

Grigory Sarnitskiy sargrigory at ya.ru
Thu May 12 19:14:51 CEST 2011


How do I make my program stop whenever it gets somewhere NaN as a result during a calculation? If there is no appropriate flag for ghc maybe there exist flags for C to use in optc.

I don't want NaN to propagate, it is merely stupid, it should be terminated.



More information about the Haskell-Cafe mailing list