RE: Division by 0 exits ghci

2002-09-18 Thread Simon Marlow
George Russell [EMAIL PROTECTED] wrote, In fact the problem is more drastic than I mentioned in my last message; division by 0 doesn't seem to be catchable at all. From this program --- cut here --- import Exception main = do excep -

Division by 0 exits ghci

2002-09-17 Thread George Russell
On Solaris: # /home/ger/ghc-5.04.1.install/bin/ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 5.04.1, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ...

Re: Division by 0 exits ghci

2002-09-17 Thread George Russell
In fact the problem is more drastic than I mentioned in my last message; division by 0 doesn't seem to be catchable at all. From this program --- cut here --- import Exception main = do excep - Exception.try (seq (1 `div` 0) (return ())) putStrLn

Re: Division by 0 exits ghci

2002-09-17 Thread Manuel M T Chakravarty
George Russell [EMAIL PROTECTED] wrote, In fact the problem is more drastic than I mentioned in my last message; division by 0 doesn't seem to be catchable at all. From this program --- cut here --- import Exception main = do excep - Exception.try