on master help sign in
Fix package flags.
37b155cNick
bucks.cabal+6
@@ -10,6 +10,10 @@ maintainer: nick@typeable.io
10category: Data
10category: Data
11build-type: Simple
11build-type: Simple
12
12
13+source-repository: head
14+ type: git
15+ location: https://github.com/typeable/bucks.git
16+
13flag aeson
17flag aeson
14 description: Enable Aeson instances
18 description: Enable Aeson instances
15 default: False
19 default: False
@@ -33,9 +37,11 @@ library
33 if flag(aeson)
37 if flag(aeson)
34 other-modules: Data.Money.JSON
38 other-modules: Data.Money.JSON
35 build-depends: aeson >= 2.0 && < 3.0
39 build-depends: aeson >= 2.0 && < 3.0
40+ ghc-options: -DUSE_AESON
36 if flag(rel8)
41 if flag(rel8)
37 other-modules: Data.Money.Rel8
42 other-modules: Data.Money.Rel8
38 build-depends: rel8 >= 1.4,
43 build-depends: rel8 >= 1.4,
39 scientific
44 scientific
45+ ghc-options: -DUSE_REL8
40 hs-source-dirs: src
46 hs-source-dirs: src
41 default-language: Haskell2010
47 default-language: Haskell2010
src/Data/Money.hs+3−2
@@ -1,11 +1,12 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2module Data.Money (module Export) where
2module Data.Money (module Export) where
3
3
4+import Data.Money.Currencies as Export
4import Data.Money.Internal as Export
5import Data.Money.Internal as Export
5
6
6−#ifdef flag_AESON
7+#ifdef USE_AESON
7import Data.Money.JSON as Export ()
8import Data.Money.JSON as Export ()
8#endif
9#endif
9−#ifdef flag_REL8
10+#ifdef USE_REL8
10import Data.Money.Rel8 as Export ()
11import Data.Money.Rel8 as Export ()
11#endif
12#endif