summaryrefslogtreecommitdiff
path: root/examples/error.hs
blob: 16305dc9c537a14bb776648bc1cd1717f4015aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Numeric.GSL
import Prelude hiding (catch)
import Control.Exception

test x = catch
       (print x)
       (\e -> putStrLn $ "captured ["++ show e++"]")

main = do
    setErrorHandlerOff

    test $ log_e (-1)
    test $ 5 + (fst.exp_e) 1000
    test $ bessel_zero_Jnu_e (-0.3) 2

    putStrLn "Bye"