diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-09-28 07:37:49 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-09-28 07:37:49 +0000 |
commit | 74e7d42263b196c22d1f5da3d51beec69071600d (patch) | |
tree | 04dd5cd4ef4e22dfd114a6739c9ed39bdaf6f26b /lib/GSL.hs | |
parent | 0198366bba7a5f2d67338633f9eb90889ffc31b2 (diff) |
save work
Diffstat (limited to 'lib/GSL.hs')
-rw-r--r-- | lib/GSL.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,6 +20,7 @@ module GSL ( | |||
20 | , module GSL.Minimization | 20 | , module GSL.Minimization |
21 | , module GSL.Special | 21 | , module GSL.Special |
22 | , module Complex | 22 | , module Complex |
23 | , setErrorHandlerOff | ||
23 | ) where | 24 | ) where |
24 | 25 | ||
25 | import GSL.Integration | 26 | import GSL.Integration |
@@ -30,3 +31,8 @@ import GSL.Polynomials | |||
30 | import GSL.Minimization | 31 | import GSL.Minimization |
31 | import Complex | 32 | import Complex |
32 | import GSL.Special | 33 | import GSL.Special |
34 | |||
35 | |||
36 | -- | This action removes the GSL default error handler (which aborts the program), so that | ||
37 | -- GSL errors can be handled by Haskell (using Control.Exception) and ghci doesn't abort. | ||
38 | foreign import ccall "GSL/gsl-aux.h no_abort_on_error" setErrorHandlerOff :: IO () | ||