diff options
Diffstat (limited to 'packages/special/lib/Numeric')
32 files changed, 75 insertions, 61 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Airy.hs b/packages/special/lib/Numeric/GSL/Special/Airy.hs index 8a04eed..2438b71 100644 --- a/packages/special/lib/Numeric/GSL/Special/Airy.hs +++ b/packages/special/lib/Numeric/GSL/Special/Airy.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Airy | 3 | -- Module : Numeric.GSL.Special.Airy |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -41,7 +41,7 @@ module Numeric.GSL.Special.Airy( | |||
41 | ) where | 41 | ) where |
42 | 42 | ||
43 | import Foreign(Ptr) | 43 | import Foreign(Ptr) |
44 | import Foreign.C.Types(CInt) | 44 | import Foreign.C.Types(CInt(..)) |
45 | import Numeric.GSL.Special.Internal | 45 | import Numeric.GSL.Special.Internal |
46 | 46 | ||
47 | airy_Ai_e :: Double -> Precision -> (Double,Double) | 47 | airy_Ai_e :: Double -> Precision -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Bessel.hs b/packages/special/lib/Numeric/GSL/Special/Bessel.hs index 66d6c5b..e88c3b0 100644 --- a/packages/special/lib/Numeric/GSL/Special/Bessel.hs +++ b/packages/special/lib/Numeric/GSL/Special/Bessel.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Bessel | 3 | -- Module : Numeric.GSL.Special.Bessel |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -91,6 +91,7 @@ module Numeric.GSL.Special.Bessel( | |||
91 | , bessel_Inu | 91 | , bessel_Inu |
92 | , bessel_Knu_scaled_e | 92 | , bessel_Knu_scaled_e |
93 | , bessel_Knu_scaled | 93 | , bessel_Knu_scaled |
94 | , bessel_Knu_scaled_e10_e | ||
94 | , bessel_Knu_e | 95 | , bessel_Knu_e |
95 | , bessel_Knu | 96 | , bessel_Knu |
96 | , bessel_lnKnu_e | 97 | , bessel_lnKnu_e |
@@ -104,7 +105,7 @@ module Numeric.GSL.Special.Bessel( | |||
104 | ) where | 105 | ) where |
105 | 106 | ||
106 | import Foreign(Ptr) | 107 | import Foreign(Ptr) |
107 | import Foreign.C.Types(CInt) | 108 | import Foreign.C.Types(CInt(..),CSize(..)) |
108 | import Numeric.GSL.Special.Internal | 109 | import Numeric.GSL.Special.Internal |
109 | 110 | ||
110 | bessel_J0_e :: Double -> (Double,Double) | 111 | bessel_J0_e :: Double -> (Double,Double) |
@@ -467,6 +468,10 @@ bessel_Knu_scaled :: Double -> Double -> Double | |||
467 | bessel_Knu_scaled = gsl_sf_bessel_Knu_scaled | 468 | bessel_Knu_scaled = gsl_sf_bessel_Knu_scaled |
468 | foreign import ccall SAFE_CHEAP "gsl_sf_bessel_Knu_scaled" gsl_sf_bessel_Knu_scaled :: Double -> Double -> Double | 469 | foreign import ccall SAFE_CHEAP "gsl_sf_bessel_Knu_scaled" gsl_sf_bessel_Knu_scaled :: Double -> Double -> Double |
469 | 470 | ||
471 | bessel_Knu_scaled_e10_e :: Double -> Double -> (Double,Int,Double) | ||
472 | bessel_Knu_scaled_e10_e nu x = createSFR_E10 "bessel_Knu_scaled_e10_e" $ gsl_sf_bessel_Knu_scaled_e10_e nu x | ||
473 | foreign import ccall SAFE_CHEAP "gsl_sf_bessel_Knu_scaled_e10_e" gsl_sf_bessel_Knu_scaled_e10_e :: Double -> Double -> Ptr () -> IO CInt | ||
474 | |||
470 | bessel_Knu_e :: Double -> Double -> (Double,Double) | 475 | bessel_Knu_e :: Double -> Double -> (Double,Double) |
471 | bessel_Knu_e nu x = createSFR "bessel_Knu_e" $ gsl_sf_bessel_Knu_e nu x | 476 | bessel_Knu_e nu x = createSFR "bessel_Knu_e" $ gsl_sf_bessel_Knu_e nu x |
472 | foreign import ccall SAFE_CHEAP "gsl_sf_bessel_Knu_e" gsl_sf_bessel_Knu_e :: Double -> Double -> Ptr () -> IO CInt | 477 | foreign import ccall SAFE_CHEAP "gsl_sf_bessel_Knu_e" gsl_sf_bessel_Knu_e :: Double -> Double -> Ptr () -> IO CInt |
diff --git a/packages/special/lib/Numeric/GSL/Special/Clausen.hs b/packages/special/lib/Numeric/GSL/Special/Clausen.hs index 70f05a7..59547ec 100644 --- a/packages/special/lib/Numeric/GSL/Special/Clausen.hs +++ b/packages/special/lib/Numeric/GSL/Special/Clausen.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Clausen | 3 | -- Module : Numeric.GSL.Special.Clausen |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -18,7 +18,7 @@ module Numeric.GSL.Special.Clausen( | |||
18 | ) where | 18 | ) where |
19 | 19 | ||
20 | import Foreign(Ptr) | 20 | import Foreign(Ptr) |
21 | import Foreign.C.Types(CInt) | 21 | import Foreign.C.Types(CInt(..)) |
22 | import Numeric.GSL.Special.Internal | 22 | import Numeric.GSL.Special.Internal |
23 | 23 | ||
24 | clausen_e :: Double -> (Double,Double) | 24 | clausen_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Coulomb.hs b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs index 7253972..c282d7b 100644 --- a/packages/special/lib/Numeric/GSL/Special/Coulomb.hs +++ b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Coulomb | 3 | -- Module : Numeric.GSL.Special.Coulomb |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -21,7 +21,7 @@ module Numeric.GSL.Special.Coulomb( | |||
21 | ) where | 21 | ) where |
22 | 22 | ||
23 | import Foreign(Ptr) | 23 | import Foreign(Ptr) |
24 | import Foreign.C.Types(CInt) | 24 | import Foreign.C.Types(CInt(..)) |
25 | import Numeric.GSL.Special.Internal | 25 | import Numeric.GSL.Special.Internal |
26 | 26 | ||
27 | hydrogenicR_1_e :: Double -> Double -> (Double,Double) | 27 | hydrogenicR_1_e :: Double -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Coupling.hs b/packages/special/lib/Numeric/GSL/Special/Coupling.hs index 16ff9b9..390c6bb 100644 --- a/packages/special/lib/Numeric/GSL/Special/Coupling.hs +++ b/packages/special/lib/Numeric/GSL/Special/Coupling.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Coupling | 3 | -- Module : Numeric.GSL.Special.Coupling |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -24,7 +24,7 @@ module Numeric.GSL.Special.Coupling( | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Foreign(Ptr) | 26 | import Foreign(Ptr) |
27 | import Foreign.C.Types(CInt) | 27 | import Foreign.C.Types(CInt(..)) |
28 | import Numeric.GSL.Special.Internal | 28 | import Numeric.GSL.Special.Internal |
29 | 29 | ||
30 | coupling_3j_e :: CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> (Double,Double) | 30 | coupling_3j_e :: CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Dawson.hs b/packages/special/lib/Numeric/GSL/Special/Dawson.hs index 7e8d9ce..2486a57 100644 --- a/packages/special/lib/Numeric/GSL/Special/Dawson.hs +++ b/packages/special/lib/Numeric/GSL/Special/Dawson.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Dawson | 3 | -- Module : Numeric.GSL.Special.Dawson |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -18,7 +18,7 @@ module Numeric.GSL.Special.Dawson( | |||
18 | ) where | 18 | ) where |
19 | 19 | ||
20 | import Foreign(Ptr) | 20 | import Foreign(Ptr) |
21 | import Foreign.C.Types(CInt) | 21 | import Foreign.C.Types(CInt(..)) |
22 | import Numeric.GSL.Special.Internal | 22 | import Numeric.GSL.Special.Internal |
23 | 23 | ||
24 | dawson_e :: Double -> (Double,Double) | 24 | dawson_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Debye.hs b/packages/special/lib/Numeric/GSL/Special/Debye.hs index 01976ee..5a54e37 100644 --- a/packages/special/lib/Numeric/GSL/Special/Debye.hs +++ b/packages/special/lib/Numeric/GSL/Special/Debye.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Debye | 3 | -- Module : Numeric.GSL.Special.Debye |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -28,7 +28,7 @@ module Numeric.GSL.Special.Debye( | |||
28 | ) where | 28 | ) where |
29 | 29 | ||
30 | import Foreign(Ptr) | 30 | import Foreign(Ptr) |
31 | import Foreign.C.Types(CInt) | 31 | import Foreign.C.Types(CInt(..)) |
32 | import Numeric.GSL.Special.Internal | 32 | import Numeric.GSL.Special.Internal |
33 | 33 | ||
34 | debye_1_e :: Double -> (Double,Double) | 34 | debye_1_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Dilog.hs b/packages/special/lib/Numeric/GSL/Special/Dilog.hs index 6aa58c4..a7e8e86 100644 --- a/packages/special/lib/Numeric/GSL/Special/Dilog.hs +++ b/packages/special/lib/Numeric/GSL/Special/Dilog.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Dilog | 3 | -- Module : Numeric.GSL.Special.Dilog |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -21,7 +21,7 @@ module Numeric.GSL.Special.Dilog( | |||
21 | ) where | 21 | ) where |
22 | 22 | ||
23 | import Foreign(Ptr) | 23 | import Foreign(Ptr) |
24 | import Foreign.C.Types(CInt) | 24 | import Foreign.C.Types(CInt(..)) |
25 | import Numeric.GSL.Special.Internal | 25 | import Numeric.GSL.Special.Internal |
26 | 26 | ||
27 | dilog_e :: Double -> (Double,Double) | 27 | dilog_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Elementary.hs b/packages/special/lib/Numeric/GSL/Special/Elementary.hs index 7e7f8b6..710e0ce 100644 --- a/packages/special/lib/Numeric/GSL/Special/Elementary.hs +++ b/packages/special/lib/Numeric/GSL/Special/Elementary.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Elementary | 3 | -- Module : Numeric.GSL.Special.Elementary |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -19,7 +19,7 @@ module Numeric.GSL.Special.Elementary( | |||
19 | ) where | 19 | ) where |
20 | 20 | ||
21 | import Foreign(Ptr) | 21 | import Foreign(Ptr) |
22 | import Foreign.C.Types(CInt) | 22 | import Foreign.C.Types(CInt(..)) |
23 | import Numeric.GSL.Special.Internal | 23 | import Numeric.GSL.Special.Internal |
24 | 24 | ||
25 | multiply_e :: Double -> Double -> (Double,Double) | 25 | multiply_e :: Double -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Ellint.hs b/packages/special/lib/Numeric/GSL/Special/Ellint.hs index 6735057..0d171bf 100644 --- a/packages/special/lib/Numeric/GSL/Special/Ellint.hs +++ b/packages/special/lib/Numeric/GSL/Special/Ellint.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Ellint | 3 | -- Module : Numeric.GSL.Special.Ellint |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -40,7 +40,7 @@ module Numeric.GSL.Special.Ellint( | |||
40 | ) where | 40 | ) where |
41 | 41 | ||
42 | import Foreign(Ptr) | 42 | import Foreign(Ptr) |
43 | import Foreign.C.Types(CInt) | 43 | import Foreign.C.Types(CInt(..)) |
44 | import Numeric.GSL.Special.Internal | 44 | import Numeric.GSL.Special.Internal |
45 | 45 | ||
46 | ellint_Kcomp_e :: Double -> Precision -> (Double,Double) | 46 | ellint_Kcomp_e :: Double -> Precision -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Elljac.hs b/packages/special/lib/Numeric/GSL/Special/Elljac.hs index 5b32cfe..18c7f06 100644 --- a/packages/special/lib/Numeric/GSL/Special/Elljac.hs +++ b/packages/special/lib/Numeric/GSL/Special/Elljac.hs | |||
@@ -16,8 +16,11 @@ module Numeric.GSL.Special.Elljac( | |||
16 | elljac_e | 16 | elljac_e |
17 | ) where | 17 | ) where |
18 | 18 | ||
19 | import Foreign | 19 | import System.IO.Unsafe |
20 | import Foreign.C.Types(CInt) | 20 | import Foreign.Ptr |
21 | import Foreign.Storable | ||
22 | import Foreign.Marshal | ||
23 | import Foreign.C.Types(CInt(..)) | ||
21 | 24 | ||
22 | elljac_e :: Double -> Double -> (Double,Double,Double) | 25 | elljac_e :: Double -> Double -> (Double,Double,Double) |
23 | elljac_e u m = unsafePerformIO $ do | 26 | elljac_e u m = unsafePerformIO $ do |
diff --git a/packages/special/lib/Numeric/GSL/Special/Erf.hs b/packages/special/lib/Numeric/GSL/Special/Erf.hs index 258afd3..69a5c9e 100644 --- a/packages/special/lib/Numeric/GSL/Special/Erf.hs +++ b/packages/special/lib/Numeric/GSL/Special/Erf.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Erf | 3 | -- Module : Numeric.GSL.Special.Erf |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -28,7 +28,7 @@ module Numeric.GSL.Special.Erf( | |||
28 | ) where | 28 | ) where |
29 | 29 | ||
30 | import Foreign(Ptr) | 30 | import Foreign(Ptr) |
31 | import Foreign.C.Types(CInt) | 31 | import Foreign.C.Types(CInt(..)) |
32 | import Numeric.GSL.Special.Internal | 32 | import Numeric.GSL.Special.Internal |
33 | 33 | ||
34 | erfc_e :: Double -> (Double,Double) | 34 | erfc_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Exp.hs b/packages/special/lib/Numeric/GSL/Special/Exp.hs index 4f15964..0cc2b1c 100644 --- a/packages/special/lib/Numeric/GSL/Special/Exp.hs +++ b/packages/special/lib/Numeric/GSL/Special/Exp.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Exp | 3 | -- Module : Numeric.GSL.Special.Exp |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -35,7 +35,7 @@ module Numeric.GSL.Special.Exp( | |||
35 | ) where | 35 | ) where |
36 | 36 | ||
37 | import Foreign(Ptr) | 37 | import Foreign(Ptr) |
38 | import Foreign.C.Types(CInt) | 38 | import Foreign.C.Types(CInt(..)) |
39 | import Numeric.GSL.Special.Internal | 39 | import Numeric.GSL.Special.Internal |
40 | 40 | ||
41 | exp_e :: Double -> (Double,Double) | 41 | exp_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Expint.hs b/packages/special/lib/Numeric/GSL/Special/Expint.hs index f1102c4..be01007 100644 --- a/packages/special/lib/Numeric/GSL/Special/Expint.hs +++ b/packages/special/lib/Numeric/GSL/Special/Expint.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Expint | 3 | -- Module : Numeric.GSL.Special.Expint |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -44,7 +44,7 @@ module Numeric.GSL.Special.Expint( | |||
44 | ) where | 44 | ) where |
45 | 45 | ||
46 | import Foreign(Ptr) | 46 | import Foreign(Ptr) |
47 | import Foreign.C.Types(CInt) | 47 | import Foreign.C.Types(CInt(..)) |
48 | import Numeric.GSL.Special.Internal | 48 | import Numeric.GSL.Special.Internal |
49 | 49 | ||
50 | expint_E1_e :: Double -> (Double,Double) | 50 | expint_E1_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs b/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs index 362c7ba..a28b6e3 100644 --- a/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs +++ b/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Fermi_dirac | 3 | -- Module : Numeric.GSL.Special.Fermi_dirac |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -34,7 +34,7 @@ module Numeric.GSL.Special.Fermi_dirac( | |||
34 | ) where | 34 | ) where |
35 | 35 | ||
36 | import Foreign(Ptr) | 36 | import Foreign(Ptr) |
37 | import Foreign.C.Types(CInt) | 37 | import Foreign.C.Types(CInt(..)) |
38 | import Numeric.GSL.Special.Internal | 38 | import Numeric.GSL.Special.Internal |
39 | 39 | ||
40 | fermi_dirac_m1_e :: Double -> (Double,Double) | 40 | fermi_dirac_m1_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Gamma.hs b/packages/special/lib/Numeric/GSL/Special/Gamma.hs index 1a4ed4e..f5a573b 100644 --- a/packages/special/lib/Numeric/GSL/Special/Gamma.hs +++ b/packages/special/lib/Numeric/GSL/Special/Gamma.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Gamma | 3 | -- Module : Numeric.GSL.Special.Gamma |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -57,7 +57,7 @@ module Numeric.GSL.Special.Gamma( | |||
57 | ) where | 57 | ) where |
58 | 58 | ||
59 | import Foreign(Ptr) | 59 | import Foreign(Ptr) |
60 | import Foreign.C.Types(CInt) | 60 | import Foreign.C.Types(CInt(..)) |
61 | import Numeric.GSL.Special.Internal | 61 | import Numeric.GSL.Special.Internal |
62 | 62 | ||
63 | lngamma_e :: Double -> (Double,Double) | 63 | lngamma_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs b/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs index 31568f3..78fbaf4 100644 --- a/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs +++ b/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Gegenbauer | 3 | -- Module : Numeric.GSL.Special.Gegenbauer |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -24,7 +24,7 @@ module Numeric.GSL.Special.Gegenbauer( | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Foreign(Ptr) | 26 | import Foreign(Ptr) |
27 | import Foreign.C.Types(CInt) | 27 | import Foreign.C.Types(CInt(..)) |
28 | import Numeric.GSL.Special.Internal | 28 | import Numeric.GSL.Special.Internal |
29 | 29 | ||
30 | gegenpoly_1_e :: Double -> Double -> (Double,Double) | 30 | gegenpoly_1_e :: Double -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Hyperg.hs b/packages/special/lib/Numeric/GSL/Special/Hyperg.hs index b5425f1..958503f 100644 --- a/packages/special/lib/Numeric/GSL/Special/Hyperg.hs +++ b/packages/special/lib/Numeric/GSL/Special/Hyperg.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Hyperg | 3 | -- Module : Numeric.GSL.Special.Hyperg |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -38,7 +38,7 @@ module Numeric.GSL.Special.Hyperg( | |||
38 | ) where | 38 | ) where |
39 | 39 | ||
40 | import Foreign(Ptr) | 40 | import Foreign(Ptr) |
41 | import Foreign.C.Types(CInt) | 41 | import Foreign.C.Types(CInt(..)) |
42 | import Numeric.GSL.Special.Internal | 42 | import Numeric.GSL.Special.Internal |
43 | 43 | ||
44 | hyperg_0F1_e :: Double -> Double -> (Double,Double) | 44 | hyperg_0F1_e :: Double -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Internal.hsc b/packages/special/lib/Numeric/GSL/Special/Internal.hsc index ae735df..338ed40 100644 --- a/packages/special/lib/Numeric/GSL/Special/Internal.hsc +++ b/packages/special/lib/Numeric/GSL/Special/Internal.hsc | |||
@@ -29,7 +29,10 @@ module Numeric.GSL.Special.Internal ( | |||
29 | ) | 29 | ) |
30 | where | 30 | where |
31 | 31 | ||
32 | import Foreign | 32 | import Foreign.Storable |
33 | import Foreign.Ptr | ||
34 | import Foreign.Marshal | ||
35 | import System.IO.Unsafe(unsafePerformIO) | ||
33 | import Data.Packed.Development(check,(//)) | 36 | import Data.Packed.Development(check,(//)) |
34 | import Foreign.C.Types(CSize,CInt) | 37 | import Foreign.C.Types(CSize,CInt) |
35 | 38 | ||
diff --git a/packages/special/lib/Numeric/GSL/Special/Laguerre.hs b/packages/special/lib/Numeric/GSL/Special/Laguerre.hs index 8db6a6c..33d7769 100644 --- a/packages/special/lib/Numeric/GSL/Special/Laguerre.hs +++ b/packages/special/lib/Numeric/GSL/Special/Laguerre.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Laguerre | 3 | -- Module : Numeric.GSL.Special.Laguerre |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -24,7 +24,7 @@ module Numeric.GSL.Special.Laguerre( | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Foreign(Ptr) | 26 | import Foreign(Ptr) |
27 | import Foreign.C.Types(CInt) | 27 | import Foreign.C.Types(CInt(..)) |
28 | import Numeric.GSL.Special.Internal | 28 | import Numeric.GSL.Special.Internal |
29 | 29 | ||
30 | laguerre_1_e :: Double -> Double -> (Double,Double) | 30 | laguerre_1_e :: Double -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Lambert.hs b/packages/special/lib/Numeric/GSL/Special/Lambert.hs index b229bf6..4c410d7 100644 --- a/packages/special/lib/Numeric/GSL/Special/Lambert.hs +++ b/packages/special/lib/Numeric/GSL/Special/Lambert.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Lambert | 3 | -- Module : Numeric.GSL.Special.Lambert |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -20,7 +20,7 @@ module Numeric.GSL.Special.Lambert( | |||
20 | ) where | 20 | ) where |
21 | 21 | ||
22 | import Foreign(Ptr) | 22 | import Foreign(Ptr) |
23 | import Foreign.C.Types(CInt) | 23 | import Foreign.C.Types(CInt(..)) |
24 | import Numeric.GSL.Special.Internal | 24 | import Numeric.GSL.Special.Internal |
25 | 25 | ||
26 | lambert_W0_e :: Double -> (Double,Double) | 26 | lambert_W0_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Legendre.hs b/packages/special/lib/Numeric/GSL/Special/Legendre.hs index e329457..0042656 100644 --- a/packages/special/lib/Numeric/GSL/Special/Legendre.hs +++ b/packages/special/lib/Numeric/GSL/Special/Legendre.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Legendre | 3 | -- Module : Numeric.GSL.Special.Legendre |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -53,7 +53,7 @@ module Numeric.GSL.Special.Legendre( | |||
53 | ) where | 53 | ) where |
54 | 54 | ||
55 | import Foreign(Ptr) | 55 | import Foreign(Ptr) |
56 | import Foreign.C.Types(CInt) | 56 | import Foreign.C.Types(CInt(..)) |
57 | import Numeric.GSL.Special.Internal | 57 | import Numeric.GSL.Special.Internal |
58 | 58 | ||
59 | legendre_Pl_e :: CInt -> Double -> (Double,Double) | 59 | legendre_Pl_e :: CInt -> Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Log.hs b/packages/special/lib/Numeric/GSL/Special/Log.hs index 7f3f9d6..46b6a0a 100644 --- a/packages/special/lib/Numeric/GSL/Special/Log.hs +++ b/packages/special/lib/Numeric/GSL/Special/Log.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Log | 3 | -- Module : Numeric.GSL.Special.Log |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -25,7 +25,7 @@ module Numeric.GSL.Special.Log( | |||
25 | ) where | 25 | ) where |
26 | 26 | ||
27 | import Foreign(Ptr) | 27 | import Foreign(Ptr) |
28 | import Foreign.C.Types(CInt) | 28 | import Foreign.C.Types(CInt(..)) |
29 | import Numeric.GSL.Special.Internal | 29 | import Numeric.GSL.Special.Internal |
30 | 30 | ||
31 | log_e :: Double -> (Double,Double) | 31 | log_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Pow_int.hs b/packages/special/lib/Numeric/GSL/Special/Pow_int.hs index fd232ab..bccdde7 100644 --- a/packages/special/lib/Numeric/GSL/Special/Pow_int.hs +++ b/packages/special/lib/Numeric/GSL/Special/Pow_int.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Pow_int | 3 | -- Module : Numeric.GSL.Special.Pow_int |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -18,7 +18,7 @@ module Numeric.GSL.Special.Pow_int( | |||
18 | ) where | 18 | ) where |
19 | 19 | ||
20 | import Foreign(Ptr) | 20 | import Foreign(Ptr) |
21 | import Foreign.C.Types(CInt) | 21 | import Foreign.C.Types(CInt(..)) |
22 | import Numeric.GSL.Special.Internal | 22 | import Numeric.GSL.Special.Internal |
23 | 23 | ||
24 | pow_int_e :: Double -> CInt -> (Double,Double) | 24 | pow_int_e :: Double -> CInt -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Psi.hs b/packages/special/lib/Numeric/GSL/Special/Psi.hs index cb4c756..b99817f 100644 --- a/packages/special/lib/Numeric/GSL/Special/Psi.hs +++ b/packages/special/lib/Numeric/GSL/Special/Psi.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Psi | 3 | -- Module : Numeric.GSL.Special.Psi |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -29,7 +29,7 @@ module Numeric.GSL.Special.Psi( | |||
29 | ) where | 29 | ) where |
30 | 30 | ||
31 | import Foreign(Ptr) | 31 | import Foreign(Ptr) |
32 | import Foreign.C.Types(CInt) | 32 | import Foreign.C.Types(CInt(..)) |
33 | import Numeric.GSL.Special.Internal | 33 | import Numeric.GSL.Special.Internal |
34 | 34 | ||
35 | psi_int_e :: CInt -> (Double,Double) | 35 | psi_int_e :: CInt -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs index 59d6c76..6b5cbf6 100644 --- a/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs +++ b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Synchrotron | 3 | -- Module : Numeric.GSL.Special.Synchrotron |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -20,7 +20,7 @@ module Numeric.GSL.Special.Synchrotron( | |||
20 | ) where | 20 | ) where |
21 | 21 | ||
22 | import Foreign(Ptr) | 22 | import Foreign(Ptr) |
23 | import Foreign.C.Types(CInt) | 23 | import Foreign.C.Types(CInt(..)) |
24 | import Numeric.GSL.Special.Internal | 24 | import Numeric.GSL.Special.Internal |
25 | 25 | ||
26 | synchrotron_1_e :: Double -> (Double,Double) | 26 | synchrotron_1_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Transport.hs b/packages/special/lib/Numeric/GSL/Special/Transport.hs index e95a67a..4f3b469 100644 --- a/packages/special/lib/Numeric/GSL/Special/Transport.hs +++ b/packages/special/lib/Numeric/GSL/Special/Transport.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Transport | 3 | -- Module : Numeric.GSL.Special.Transport |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -24,7 +24,7 @@ module Numeric.GSL.Special.Transport( | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Foreign(Ptr) | 26 | import Foreign(Ptr) |
27 | import Foreign.C.Types(CInt) | 27 | import Foreign.C.Types(CInt(..)) |
28 | import Numeric.GSL.Special.Internal | 28 | import Numeric.GSL.Special.Internal |
29 | 29 | ||
30 | transport_2_e :: Double -> (Double,Double) | 30 | transport_2_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Trig.hs b/packages/special/lib/Numeric/GSL/Special/Trig.hs index 91c264a..2f1bda9 100644 --- a/packages/special/lib/Numeric/GSL/Special/Trig.hs +++ b/packages/special/lib/Numeric/GSL/Special/Trig.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Trig | 3 | -- Module : Numeric.GSL.Special.Trig |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -39,7 +39,7 @@ module Numeric.GSL.Special.Trig( | |||
39 | ) where | 39 | ) where |
40 | 40 | ||
41 | import Foreign(Ptr) | 41 | import Foreign(Ptr) |
42 | import Foreign.C.Types(CInt) | 42 | import Foreign.C.Types(CInt(..)) |
43 | import Numeric.GSL.Special.Internal | 43 | import Numeric.GSL.Special.Internal |
44 | 44 | ||
45 | sin_e :: Double -> (Double,Double) | 45 | sin_e :: Double -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Zeta.hs b/packages/special/lib/Numeric/GSL/Special/Zeta.hs index 930efc0..b29b026 100644 --- a/packages/special/lib/Numeric/GSL/Special/Zeta.hs +++ b/packages/special/lib/Numeric/GSL/Special/Zeta.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | -- | | 2 | -- | |
3 | -- Module : Numeric.GSL.Special.Zeta | 3 | -- Module : Numeric.GSL.Special.Zeta |
4 | -- Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006-11 |
5 | -- License : GPL | 5 | -- License : GPL |
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | -- Stability : provisional | 7 | -- Stability : provisional |
@@ -30,7 +30,7 @@ module Numeric.GSL.Special.Zeta( | |||
30 | ) where | 30 | ) where |
31 | 31 | ||
32 | import Foreign(Ptr) | 32 | import Foreign(Ptr) |
33 | import Foreign.C.Types(CInt) | 33 | import Foreign.C.Types(CInt(..)) |
34 | import Numeric.GSL.Special.Internal | 34 | import Numeric.GSL.Special.Internal |
35 | 35 | ||
36 | zeta_int_e :: CInt -> (Double,Double) | 36 | zeta_int_e :: CInt -> (Double,Double) |
diff --git a/packages/special/lib/Numeric/GSL/Special/auto.hs b/packages/special/lib/Numeric/GSL/Special/auto.hs index b6276b2..d3461b2 100755 --- a/packages/special/lib/Numeric/GSL/Special/auto.hs +++ b/packages/special/lib/Numeric/GSL/Special/auto.hs | |||
@@ -2,8 +2,10 @@ | |||
2 | 2 | ||
3 | -- automatic generation of wrappers for simple GSL special functions | 3 | -- automatic generation of wrappers for simple GSL special functions |
4 | 4 | ||
5 | {-# LANGUAGE NoMonomorphismRestriction #-} | ||
6 | |||
5 | import Text.ParserCombinators.Parsec | 7 | import Text.ParserCombinators.Parsec |
6 | import System | 8 | import System.Environment(getArgs) |
7 | import Data.List(intersperse, isPrefixOf) | 9 | import Data.List(intersperse, isPrefixOf) |
8 | import Data.Char(toUpper,isUpper,toLower) | 10 | import Data.Char(toUpper,isUpper,toLower) |
9 | 11 | ||
@@ -64,7 +66,7 @@ main = do | |||
64 | let exports = rep (")",") where") $ rep ("(\n","(\n ") $ rep (",\n",", ") $ unlines $ ["("]++intersperse "," (map (\(Header _ n _) -> hName n) (filter safe parsed))++[")"] | 66 | let exports = rep (")",") where") $ rep ("(\n","(\n ") $ rep (",\n",", ") $ unlines $ ["("]++intersperse "," (map (\(Header _ n _) -> hName n) (filter safe parsed))++[")"] |
65 | let defs = unlines $ map (showFull (name ++".h")) parsed | 67 | let defs = unlines $ map (showFull (name ++".h")) parsed |
66 | let imports = "\nimport Foreign(Ptr)\n" | 68 | let imports = "\nimport Foreign(Ptr)\n" |
67 | ++"import Foreign.C.Types(CInt)\n" | 69 | ++"import Foreign.C.Types(CInt(..))\n" |
68 | ++"import Numeric.GSL.Special.Internal\n" | 70 | ++"import Numeric.GSL.Special.Internal\n" |
69 | let mod = modhead name ++ "module Numeric.GSL.Special."++ upperFirst name++exports++imports++defs | 71 | let mod = modhead name ++ "module Numeric.GSL.Special."++ upperFirst name++exports++imports++defs |
70 | writeFile (upperFirst name ++ ".hs") mod | 72 | writeFile (upperFirst name ++ ".hs") mod |
@@ -80,7 +82,7 @@ google name = "<http://www.google.com/search?q=" | |||
80 | 82 | ||
81 | modhead name = replicate 60 '-' ++ "\n-- |\n" | 83 | modhead name = replicate 60 '-' ++ "\n-- |\n" |
82 | ++"-- Module : Numeric.GSL.Special."++upperFirst name++"\n" | 84 | ++"-- Module : Numeric.GSL.Special."++upperFirst name++"\n" |
83 | ++"-- Copyright : (c) Alberto Ruiz 2006\n" | 85 | ++"-- Copyright : (c) Alberto Ruiz 2006-11\n" |
84 | ++"-- License : GPL\n" | 86 | ++"-- License : GPL\n" |
85 | ++"-- Maintainer : Alberto Ruiz (aruiz at um dot es)\n" | 87 | ++"-- Maintainer : Alberto Ruiz (aruiz at um dot es)\n" |
86 | ++"-- Stability : provisional\n" | 88 | ++"-- Stability : provisional\n" |
diff --git a/packages/special/lib/Numeric/GSL/Special/autoall.sh b/packages/special/lib/Numeric/GSL/Special/autoall.sh index 18d0a6e..68a2d2d 100755 --- a/packages/special/lib/Numeric/GSL/Special/autoall.sh +++ b/packages/special/lib/Numeric/GSL/Special/autoall.sh | |||
@@ -10,6 +10,7 @@ rm -f funs.txt | |||
10 | ./auto.hs airy | 10 | ./auto.hs airy |
11 | rep ') where' ', Precision(..)\n) where' Airy.hs | 11 | rep ') where' ', Precision(..)\n) where' Airy.hs |
12 | ./auto.hs bessel | 12 | ./auto.hs bessel |
13 | rep 'Foreign.C.Types(CInt(..))' 'Foreign.C.Types(CInt(..),CSize(..))' Bessel.hs | ||
13 | ./auto.hs clausen | 14 | ./auto.hs clausen |
14 | ./auto.hs coulomb | 15 | ./auto.hs coulomb |
15 | ./auto.hs coupling | 16 | ./auto.hs coupling |
diff --git a/packages/special/lib/Numeric/GSL/Special/replace.hs b/packages/special/lib/Numeric/GSL/Special/replace.hs index f20a6b8..f0f491b 100755 --- a/packages/special/lib/Numeric/GSL/Special/replace.hs +++ b/packages/special/lib/Numeric/GSL/Special/replace.hs | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/usr/bin/env runhaskell | 1 | #!/usr/bin/env runhaskell |
2 | 2 | ||
3 | import Data.List(isPrefixOf) | 3 | import Data.List(isPrefixOf) |
4 | import System(getArgs) | 4 | import System.Environment(getArgs) |
5 | 5 | ||
6 | rep (c,r) [] = [] | 6 | rep (c,r) [] = [] |
7 | rep (c,r) f@(x:xs) | 7 | rep (c,r) f@(x:xs) |