on master help sign in
typeable/bucks/bucks.cabal
72 lines 1.9 kB history raw
1cabal-version: 3.0
2name: bucks
3version: 0.1
4synopsis: Money handling library
5-- description:
6license: MIT
7license-file: LICENSE
8author: Nick
9maintainer: nick@typeable.io
10category: Data
11build-type: Simple
13source-repository head
14 type: git
15 location: https://github.com/typeable/bucks.git
17flag aeson
18 description: Enable Aeson instances
19 default: False
20 manual: True
22flag openapi
23 description: Enable OpenAPI instances
24 default: False
25 manual: True
27flag rel8
28 description: Enable Rel8 support
29 default: False
30 manual: True
32common warnings
33 ghc-options: -Wall
35library
36 import: warnings
37 exposed-modules: Data.Money
38 Data.Money.Currencies
39 other-modules: Data.Money.Internal
40 build-depends: base >=4.14 && < 5.0,
41 groups >= 0.5
42 if flag(aeson)
43 other-modules: Data.Money.JSON
44 build-depends: aeson >= 2.0 && < 3.0
45 cpp-options: -DUSE_AESON
46 if flag(openapi)
47 other-modules: Data.Money.OpenApi
48 build-depends: openapi3
49 cpp-options: -DUSE_OPENAPI
50 if flag(rel8)
51 other-modules: Data.Money.Rel8
52 build-depends: rel8 >= 1.4,
53 scientific
54 cpp-options: -DUSE_REL8
55 hs-source-dirs: src
56 default-language: Haskell2010
58test-suite rel8-test
59 import: warnings
60 type: exitcode-stdio-1.0
61 hs-source-dirs: test
62 main-is: Rel8Spec.hs
63 build-depends: base >= 4.14 && < 5.0,
64 bucks,
65 hasql,
66 hspec,
67 rel8
68 default-language: Haskell2010
69 if flag(rel8)
70 buildable: True
71 else
72 buildable: False