diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-11-07 16:52:00 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-11-07 16:52:00 +0000 |
commit | 9e6500bf8e925b363e74e01834f81dde0810f808 (patch) | |
tree | a720c1e446944f649b2f21d619bf35b34411a072 /examples/experiments/error.hs | |
parent | 894344f9ef93a0ff5e2fb12f085b5c706b7aa9d9 (diff) |
removed -O for 6.8.1
Diffstat (limited to 'examples/experiments/error.hs')
-rw-r--r-- | examples/experiments/error.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/experiments/error.hs b/examples/experiments/error.hs new file mode 100644 index 0000000..16305dc --- /dev/null +++ b/examples/experiments/error.hs | |||
@@ -0,0 +1,16 @@ | |||
1 | import Numeric.GSL | ||
2 | import Prelude hiding (catch) | ||
3 | import Control.Exception | ||
4 | |||
5 | test x = catch | ||
6 | (print x) | ||
7 | (\e -> putStrLn $ "captured ["++ show e++"]") | ||
8 | |||
9 | main = do | ||
10 | setErrorHandlerOff | ||
11 | |||
12 | test $ log_e (-1) | ||
13 | test $ 5 + (fst.exp_e) 1000 | ||
14 | test $ bessel_zero_Jnu_e (-0.3) 2 | ||
15 | |||
16 | putStrLn "Bye" \ No newline at end of file | ||