[contrib][haskell] add the Hkl.C.Sample module
[hkl.git] / contrib / haskell / hkl.cabal
blobe9df10d89c8eb5346b7dcd2058af833c8c1c1788
1 name:                hkl
3 -- The package version.  See the Haskell package versioning policy (PVP)
4 -- for standards guiding when and how versions should be incremented.
5 -- http://www.haskell.org/haskellwiki/Package_versioning_policy
6 -- PVP summary:      +-+------- breaking API changes
7 --                   | | +----- non-breaking API additions
8 --                   | | | +--- code changes with no API change
9 version:             0.1.0.0
10 license:             GPL-3
11 license-file:        LICENSE
12 author:              Picca Frédéric-Emmanuel
13 maintainer:          picca@debian.org
14 copyright:           Synchrotron SOLEIL
15 build-type:          Simple
16 cabal-version:       >= 1.10
17 Data-Files:          data/ghkl3.ui
18                    , data/gprof2dot.py
19                    , data/pseudo3.ui
20                    , data/3d3.ui
22 Flag useHMatrixGsl
23   Description: Enable the HmatrixGSL package
24   Default:     False
26 executable ghkl
27   main-is:             src/ghkl.hs
28   build-depends:       attoparsec
29                      , base >= 4.6 && < 4.10
30                      , bindings-hdf5 >= 1.8.12
31                      , containers >= 0.5 && < 0.6
32                      , dimensional >= 0.10
33                      , filepath >= 1.3.0
34                      , Glob >= 0.7.5
35                      , hkl
36                      , hmatrix >= 0.15
37                      , monad-loops >= 0.4.2
38                      , pipes >= 4.1.2
39                      , text
40                      , transformers >= 0.3
41                      , vector >= 0.10.0.1
42   default-language:    Haskell2010
43   pkgconfig-depends:   hkl
44   build-tools:         hsc2hs
45   ghc-options:         -Wall -threaded -O2
46   ghc-options:         -Werror
47   ghc-prof-options:    -fprof-auto "-with-rtsopts=-N -p -s -h -i0.1"
49 executable xrd
50   main-is:             src/xrd.hs
51   build-depends:       attoparsec
52                      , base >= 4.6 && < 4.10
53                      , bindings-hdf5 >= 1.8.12
54                      , containers >= 0.5 && < 0.6
55                      , dimensional >= 0.10
56                      , filepath >= 1.3.0
57                      , Glob >= 0.7.5
58                      , hkl
59                      , hmatrix >= 0.15
60                      , monad-loops >= 0.4.2
61                      , pipes >= 4.1.2
62                      , text
63                      , transformers >= 0.3
64                      , vector >= 0.10.0.1
66   default-language:    Haskell2010
67   pkgconfig-depends:   hkl
68   build-tools:         hsc2hs
69   ghc-options:         -Wall -threaded -O2
70   ghc-options:         -Werror
71   ghc-prof-options:    -fprof-auto "-with-rtsopts=-N -p -s -h -i0.1"
73 executable hkl3d
74   main-is:             src/hkl3d.hs
75   build-depends:       base >= 4.6 && < 4.10
76                      , bindings-hdf5 >= 1.8.12
77                      , containers >= 0.5 && < 0.6
78                      , dimensional >= 0.10
79                      , filepath >= 1.3.0
80                      , hkl
81                      , hmatrix >= 0.15
82                      , monad-loops >= 0.4.2
83                      , pipes >= 4.1.2
84                      , text
85                      , transformers >= 0.3
86                      , vector >= 0.10.0.1
87   default-language:    Haskell2010
88   pkgconfig-depends:   hkl
89   build-tools:         hsc2hs
90   ghc-options:         -Wall -threaded -O2
91   ghc-options:         -Werror
92   ghc-prof-options:    -fprof-auto "-with-rtsopts=-N -p -s -h -i0.1"
94 library
95   exposed-modules:    Hkl
96                     , Hkl.C
97                     , Hkl.C.DArray
98                     , Hkl.C.Geometry
99                     , Hkl.C.Lattice
100                     , Hkl.C.Sample
101                     , Hkl.DataSource
102                     , Hkl.Detector
103                     , Hkl.Edf
104                     , Hkl.Engine
105                     , Hkl.Flat
106                     , Hkl.H5
107                     , Hkl.Lattice
108                     , Hkl.MyMatrix
109                     , Hkl.Nxs
110                     , Hkl.Projects
111                     , Hkl.Projects.D2AM
112                     , Hkl.Projects.D2AM.XRD
113                     , Hkl.Projects.Diffabs
114                     , Hkl.Projects.Diffabs.Charlier
115                     , Hkl.Projects.Diffabs.Hercules
116                     , Hkl.Projects.Diffabs.IRDRx
117                     , Hkl.Projects.Diffabs.Laure
118                     , Hkl.Projects.Diffabs.Martinetto
119                     , Hkl.Projects.Sixs
120                     , Hkl.PyFAI
121                     , Hkl.PyFAI.AzimuthalIntegrator
122                     , Hkl.PyFAI.Poni
123                     , Hkl.PyFAI.PoniExt
124                     , Hkl.PyFAI.Npt
125                     , Hkl.Script
126                     , Hkl.Types
127                     , Hkl.Types.Parameter
128                     , Hkl.Utils
129                     , Hkl.Xrd
130                     , Hkl.Xrd.Calibration
131                     , Hkl.Xrd.Mesh
132                     , Hkl.Xrd.OneD
133   other-modules:      Paths_hkl
134                     , Hkl.Python
135   other-extensions:    CPP
136                      , ForeignFunctionInterface
137                      , EmptyDataDecls
138                      , TypeFamilies
139                      , FlexibleInstances
140                      , FlexibleContexts
141                      , RecordWildCards
142   build-depends:       async
143                      , attoparsec
144                      , base >= 4.6 && < 4.10
145                      , bindings-hdf5 >= 1.8.12
146                      , bytestring >= 0.10.0.2
147                      , containers >= 0.5 && < 0.6
148                      , dimensional >= 0.10
149                      , directory >= 1.2.0
150                      , errors
151                      , filepath >= 1.3.0
152                      , Glob >= 0.7.5
153                      , hdf5
154                      , hmatrix >= 0.15
155                      , mmorph >= 1.0.3
156                      , monad-loops >= 0.4.2
157                      , monads-tf
158                      , pipes >= 4.1.2
159                      , pipes-safe >= 2.2.0
160                      , process >= 1.1
161                      , repa
162                      , text
163                      , transformers >= 0.3
164                      , vector >= 0.10.0.1
166   if flag(useHMatrixGsl)
167     build-depends: hmatrix-gsl >= 0.16
169   hs-source-dirs:      src
170   build-tools:         hsc2hs
171   default-language:    Haskell2010
172   pkgconfig-depends:   hkl
173   ghc-options:         -Wall -O2
174   -- ghc-options:         -fno-warn-incomplete-patterns
175   -- ghc-options:         -Werror
176   ghc-prof-options:    -fprof-auto-top