[Haskell-cafe] Error handling in calculations

2008-03-19 Thread hjgtuyl
L.S., When playing with exceptions, I noticed the following strangeness: *Main 1 / 0 Infinity *Main 1 `div` 0 *** Exception: divide by zero This is in GHCi 6.8.2; WinHugs Sep 2006 gives: Main 1 / 0 1.#INF Main 1 `div` 0 Program error: divide by zero Is this difference between

Re: [Haskell-cafe] Error handling in calculations

2008-03-19 Thread Roman Cheplyaka
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-03-19 21:47:52+0100] L.S., When playing with exceptions, I noticed the following strangeness: *Main 1 / 0 Infinity *Main 1 `div` 0 *** Exception: divide by zero This is in GHCi 6.8.2; WinHugs Sep 2006 gives: Main 1 / 0 1.#INF