diff options
Diffstat (limited to 'packages')
32 files changed, 35 insertions, 9 deletions
diff --git a/packages/base/hmatrix.cabal b/packages/base/hmatrix.cabal index 9fa3c4e..5524d2b 100644 --- a/packages/base/hmatrix.cabal +++ b/packages/base/hmatrix.cabal | |||
@@ -79,8 +79,7 @@ library | |||
79 | src/Internal/C/vector-aux.c | 79 | src/Internal/C/vector-aux.c |
80 | 80 | ||
81 | 81 | ||
82 | extensions: ForeignFunctionInterface, | 82 | extensions: ForeignFunctionInterface |
83 | CPP | ||
84 | 83 | ||
85 | ghc-options: -Wall | 84 | ghc-options: -Wall |
86 | -fno-warn-missing-signatures | 85 | -fno-warn-missing-signatures |
diff --git a/packages/base/src/Internal/Static.hs b/packages/base/src/Internal/Static.hs index 419ff07..61be456 100644 --- a/packages/base/src/Internal/Static.hs +++ b/packages/base/src/Internal/Static.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | #if __GLASGOW_HASKELL__ >= 708 | 2 | #if __GLASGOW_HASKELL__ >= 708 |
2 | 3 | ||
3 | {-# LANGUAGE DataKinds #-} | 4 | {-# LANGUAGE DataKinds #-} |
diff --git a/packages/gsl/hmatrix-gsl.cabal b/packages/gsl/hmatrix-gsl.cabal index d009994..bfd1abf 100644 --- a/packages/gsl/hmatrix-gsl.cabal +++ b/packages/gsl/hmatrix-gsl.cabal | |||
@@ -29,8 +29,7 @@ library | |||
29 | process, random | 29 | process, random |
30 | 30 | ||
31 | 31 | ||
32 | Extensions: ForeignFunctionInterface, | 32 | Extensions: ForeignFunctionInterface |
33 | CPP | ||
34 | 33 | ||
35 | hs-source-dirs: src | 34 | hs-source-dirs: src |
36 | Exposed-modules: Numeric.GSL.Differentiation, | 35 | Exposed-modules: Numeric.GSL.Differentiation, |
diff --git a/packages/gsl/src/Numeric/GSL/Polynomials.hs b/packages/gsl/src/Numeric/GSL/Polynomials.hs index 8890f8f..46a31f3 100644 --- a/packages/gsl/src/Numeric/GSL/Polynomials.hs +++ b/packages/gsl/src/Numeric/GSL/Polynomials.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | {- | | 2 | {- | |
2 | Module : Numeric.GSL.Polynomials | 3 | Module : Numeric.GSL.Polynomials |
3 | Copyright : (c) Alberto Ruiz 2006 | 4 | Copyright : (c) Alberto Ruiz 2006 |
@@ -24,7 +25,7 @@ import System.IO.Unsafe (unsafePerformIO) | |||
24 | import Foreign.C.Types (CInt(..)) | 25 | import Foreign.C.Types (CInt(..)) |
25 | #endif | 26 | #endif |
26 | 27 | ||
27 | {- | Solution of general polynomial equations, using /gsl_poly_complex_solve/. | 28 | {- | Solution of general polynomial equations, using /gsl_poly_complex_solve/. |
28 | 29 | ||
29 | For example, the three solutions of x^3 + 8 = 0 | 30 | For example, the three solutions of x^3 + 8 = 0 |
30 | 31 | ||
@@ -41,7 +42,7 @@ The example in the GSL manual: To find the roots of x^5 -1 = 0: | |||
41 | 0.30901699437494756 :+ (-0.9510565162951535), | 42 | 0.30901699437494756 :+ (-0.9510565162951535), |
42 | 1.0000000000000002 :+ 0.0] | 43 | 1.0000000000000002 :+ 0.0] |
43 | 44 | ||
44 | -} | 45 | -} |
45 | polySolve :: [Double] -> [Complex Double] | 46 | polySolve :: [Double] -> [Complex Double] |
46 | polySolve = toList . polySolve' . fromList | 47 | polySolve = toList . polySolve' . fromList |
47 | 48 | ||
diff --git a/packages/special/hmatrix-special.cabal b/packages/special/hmatrix-special.cabal index 3b122c8..368ed2c 100644 --- a/packages/special/hmatrix-special.cabal +++ b/packages/special/hmatrix-special.cabal | |||
@@ -29,8 +29,7 @@ flag safe-cheap | |||
29 | library | 29 | library |
30 | Build-Depends: base <5, hmatrix>=0.17, hmatrix-gsl | 30 | Build-Depends: base <5, hmatrix>=0.17, hmatrix-gsl |
31 | 31 | ||
32 | Extensions: ForeignFunctionInterface, | 32 | Extensions: ForeignFunctionInterface |
33 | CPP | ||
34 | 33 | ||
35 | hs-source-dirs: lib | 34 | hs-source-dirs: lib |
36 | 35 | ||
@@ -67,7 +66,7 @@ library | |||
67 | other-modules: Numeric.GSL.Special.Internal | 66 | other-modules: Numeric.GSL.Special.Internal |
68 | 67 | ||
69 | ghc-options: -Wall -fno-warn-unused-binds | 68 | ghc-options: -Wall -fno-warn-unused-binds |
70 | 69 | ||
71 | if flag(safe-cheap) | 70 | if flag(safe-cheap) |
72 | cpp-options: -DSAFE_CHEAP=safe | 71 | cpp-options: -DSAFE_CHEAP=safe |
73 | else | 72 | else |
diff --git a/packages/special/lib/Numeric/GSL/Special/Airy.hs b/packages/special/lib/Numeric/GSL/Special/Airy.hs index 737de7c..78f14b8 100644 --- a/packages/special/lib/Numeric/GSL/Special/Airy.hs +++ b/packages/special/lib/Numeric/GSL/Special/Airy.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Airy | 4 | -- Module : Numeric.GSL.Special.Airy |
diff --git a/packages/special/lib/Numeric/GSL/Special/Bessel.hs b/packages/special/lib/Numeric/GSL/Special/Bessel.hs index 4a80c28..70066f8 100644 --- a/packages/special/lib/Numeric/GSL/Special/Bessel.hs +++ b/packages/special/lib/Numeric/GSL/Special/Bessel.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Bessel | 4 | -- Module : Numeric.GSL.Special.Bessel |
diff --git a/packages/special/lib/Numeric/GSL/Special/Clausen.hs b/packages/special/lib/Numeric/GSL/Special/Clausen.hs index 80bd45c..c495c99 100644 --- a/packages/special/lib/Numeric/GSL/Special/Clausen.hs +++ b/packages/special/lib/Numeric/GSL/Special/Clausen.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Clausen | 4 | -- Module : Numeric.GSL.Special.Clausen |
diff --git a/packages/special/lib/Numeric/GSL/Special/Coulomb.hs b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs index 218213a..6904739 100644 --- a/packages/special/lib/Numeric/GSL/Special/Coulomb.hs +++ b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Coulomb | 4 | -- Module : Numeric.GSL.Special.Coulomb |
diff --git a/packages/special/lib/Numeric/GSL/Special/Coupling.hs b/packages/special/lib/Numeric/GSL/Special/Coupling.hs index 326f53f..ad120cc 100644 --- a/packages/special/lib/Numeric/GSL/Special/Coupling.hs +++ b/packages/special/lib/Numeric/GSL/Special/Coupling.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Coupling | 4 | -- Module : Numeric.GSL.Special.Coupling |
diff --git a/packages/special/lib/Numeric/GSL/Special/Dawson.hs b/packages/special/lib/Numeric/GSL/Special/Dawson.hs index 9f73767..58d92a5 100644 --- a/packages/special/lib/Numeric/GSL/Special/Dawson.hs +++ b/packages/special/lib/Numeric/GSL/Special/Dawson.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Dawson | 4 | -- Module : Numeric.GSL.Special.Dawson |
diff --git a/packages/special/lib/Numeric/GSL/Special/Debye.hs b/packages/special/lib/Numeric/GSL/Special/Debye.hs index 7ca17e4..91f9f19 100644 --- a/packages/special/lib/Numeric/GSL/Special/Debye.hs +++ b/packages/special/lib/Numeric/GSL/Special/Debye.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Debye | 4 | -- Module : Numeric.GSL.Special.Debye |
diff --git a/packages/special/lib/Numeric/GSL/Special/Dilog.hs b/packages/special/lib/Numeric/GSL/Special/Dilog.hs index 32cceba..aaebd9f 100644 --- a/packages/special/lib/Numeric/GSL/Special/Dilog.hs +++ b/packages/special/lib/Numeric/GSL/Special/Dilog.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Dilog | 4 | -- Module : Numeric.GSL.Special.Dilog |
diff --git a/packages/special/lib/Numeric/GSL/Special/Elementary.hs b/packages/special/lib/Numeric/GSL/Special/Elementary.hs index e58a697..2c092cd 100644 --- a/packages/special/lib/Numeric/GSL/Special/Elementary.hs +++ b/packages/special/lib/Numeric/GSL/Special/Elementary.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Elementary | 4 | -- Module : Numeric.GSL.Special.Elementary |
diff --git a/packages/special/lib/Numeric/GSL/Special/Ellint.hs b/packages/special/lib/Numeric/GSL/Special/Ellint.hs index 365c366..678f6db 100644 --- a/packages/special/lib/Numeric/GSL/Special/Ellint.hs +++ b/packages/special/lib/Numeric/GSL/Special/Ellint.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Ellint | 4 | -- Module : Numeric.GSL.Special.Ellint |
diff --git a/packages/special/lib/Numeric/GSL/Special/Erf.hs b/packages/special/lib/Numeric/GSL/Special/Erf.hs index 171a3c5..ef96a18 100644 --- a/packages/special/lib/Numeric/GSL/Special/Erf.hs +++ b/packages/special/lib/Numeric/GSL/Special/Erf.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Erf | 4 | -- Module : Numeric.GSL.Special.Erf |
diff --git a/packages/special/lib/Numeric/GSL/Special/Exp.hs b/packages/special/lib/Numeric/GSL/Special/Exp.hs index 3b70078..b6dfeef 100644 --- a/packages/special/lib/Numeric/GSL/Special/Exp.hs +++ b/packages/special/lib/Numeric/GSL/Special/Exp.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Exp | 4 | -- Module : Numeric.GSL.Special.Exp |
diff --git a/packages/special/lib/Numeric/GSL/Special/Expint.hs b/packages/special/lib/Numeric/GSL/Special/Expint.hs index 06f4594..faef752 100644 --- a/packages/special/lib/Numeric/GSL/Special/Expint.hs +++ b/packages/special/lib/Numeric/GSL/Special/Expint.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Expint | 4 | -- Module : Numeric.GSL.Special.Expint |
diff --git a/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs b/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs index c39c096..fe45d53 100644 --- a/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs +++ b/packages/special/lib/Numeric/GSL/Special/Fermi_dirac.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Fermi_dirac | 4 | -- Module : Numeric.GSL.Special.Fermi_dirac |
diff --git a/packages/special/lib/Numeric/GSL/Special/Gamma.hs b/packages/special/lib/Numeric/GSL/Special/Gamma.hs index 78115f1..41e24f0 100644 --- a/packages/special/lib/Numeric/GSL/Special/Gamma.hs +++ b/packages/special/lib/Numeric/GSL/Special/Gamma.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Gamma | 4 | -- Module : Numeric.GSL.Special.Gamma |
diff --git a/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs b/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs index a3c998a..fb8bf3f 100644 --- a/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs +++ b/packages/special/lib/Numeric/GSL/Special/Gegenbauer.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Gegenbauer | 4 | -- Module : Numeric.GSL.Special.Gegenbauer |
diff --git a/packages/special/lib/Numeric/GSL/Special/Hyperg.hs b/packages/special/lib/Numeric/GSL/Special/Hyperg.hs index ac237a5..3f63b8f 100644 --- a/packages/special/lib/Numeric/GSL/Special/Hyperg.hs +++ b/packages/special/lib/Numeric/GSL/Special/Hyperg.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Hyperg | 4 | -- Module : Numeric.GSL.Special.Hyperg |
diff --git a/packages/special/lib/Numeric/GSL/Special/Laguerre.hs b/packages/special/lib/Numeric/GSL/Special/Laguerre.hs index 28b3d20..919dc25 100644 --- a/packages/special/lib/Numeric/GSL/Special/Laguerre.hs +++ b/packages/special/lib/Numeric/GSL/Special/Laguerre.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Laguerre | 4 | -- Module : Numeric.GSL.Special.Laguerre |
diff --git a/packages/special/lib/Numeric/GSL/Special/Lambert.hs b/packages/special/lib/Numeric/GSL/Special/Lambert.hs index 44fbfb1..71ec9c2 100644 --- a/packages/special/lib/Numeric/GSL/Special/Lambert.hs +++ b/packages/special/lib/Numeric/GSL/Special/Lambert.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Lambert | 4 | -- Module : Numeric.GSL.Special.Lambert |
diff --git a/packages/special/lib/Numeric/GSL/Special/Legendre.hs b/packages/special/lib/Numeric/GSL/Special/Legendre.hs index cb33e2e..927fa2c 100644 --- a/packages/special/lib/Numeric/GSL/Special/Legendre.hs +++ b/packages/special/lib/Numeric/GSL/Special/Legendre.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Legendre | 4 | -- Module : Numeric.GSL.Special.Legendre |
diff --git a/packages/special/lib/Numeric/GSL/Special/Log.hs b/packages/special/lib/Numeric/GSL/Special/Log.hs index 3becf15..6111ed9 100644 --- a/packages/special/lib/Numeric/GSL/Special/Log.hs +++ b/packages/special/lib/Numeric/GSL/Special/Log.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Log | 4 | -- Module : Numeric.GSL.Special.Log |
diff --git a/packages/special/lib/Numeric/GSL/Special/Pow_int.hs b/packages/special/lib/Numeric/GSL/Special/Pow_int.hs index 08fd497..6f2540c 100644 --- a/packages/special/lib/Numeric/GSL/Special/Pow_int.hs +++ b/packages/special/lib/Numeric/GSL/Special/Pow_int.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Pow_int | 4 | -- Module : Numeric.GSL.Special.Pow_int |
diff --git a/packages/special/lib/Numeric/GSL/Special/Psi.hs b/packages/special/lib/Numeric/GSL/Special/Psi.hs index da53d1b..9e2e31a 100644 --- a/packages/special/lib/Numeric/GSL/Special/Psi.hs +++ b/packages/special/lib/Numeric/GSL/Special/Psi.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Psi | 4 | -- Module : Numeric.GSL.Special.Psi |
diff --git a/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs index b3292a6..c518c30 100644 --- a/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs +++ b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Synchrotron | 4 | -- Module : Numeric.GSL.Special.Synchrotron |
diff --git a/packages/special/lib/Numeric/GSL/Special/Transport.hs b/packages/special/lib/Numeric/GSL/Special/Transport.hs index b92b578..0047104 100644 --- a/packages/special/lib/Numeric/GSL/Special/Transport.hs +++ b/packages/special/lib/Numeric/GSL/Special/Transport.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Transport | 4 | -- Module : Numeric.GSL.Special.Transport |
diff --git a/packages/special/lib/Numeric/GSL/Special/Trig.hs b/packages/special/lib/Numeric/GSL/Special/Trig.hs index 43fdc95..f2c1519 100644 --- a/packages/special/lib/Numeric/GSL/Special/Trig.hs +++ b/packages/special/lib/Numeric/GSL/Special/Trig.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Trig | 4 | -- Module : Numeric.GSL.Special.Trig |
diff --git a/packages/special/lib/Numeric/GSL/Special/Zeta.hs b/packages/special/lib/Numeric/GSL/Special/Zeta.hs index a57a918..53a6314 100644 --- a/packages/special/lib/Numeric/GSL/Special/Zeta.hs +++ b/packages/special/lib/Numeric/GSL/Special/Zeta.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | ------------------------------------------------------------ | 2 | ------------------------------------------------------------ |
2 | -- | | 3 | -- | |
3 | -- Module : Numeric.GSL.Special.Zeta | 4 | -- Module : Numeric.GSL.Special.Zeta |