on master help sign in
Fix package flags.
commit37b155c69a8b9fa463fddb0c117d35827c098d58 authorNick <nick@typeable.io> dateMon 28 Nov 2022, 13:37 (4 years ago) parentf895f1b
2 files changed+9−2
bucks.cabal+6 src/Data/Money.hs+3−2
bucks.cabal+6
@@ -10,6 +10,10 @@ maintainer: nick@typeable.io
1010category: Data
1111build-type: Simple
1212
13+source-repository: head
14+ type: git
15+ location: https://github.com/typeable/bucks.git
16+
1317flag aeson
1418 description: Enable Aeson instances
1519 default: False
@@ -33,9 +37,11 @@ library
3337 if flag(aeson)
3438 other-modules: Data.Money.JSON
3539 build-depends: aeson >= 2.0 && < 3.0
40+ ghc-options: -DUSE_AESON
3641 if flag(rel8)
3742 other-modules: Data.Money.Rel8
3843 build-depends: rel8 >= 1.4,
3944 scientific
45+ ghc-options: -DUSE_REL8
4046 hs-source-dirs: src
4147 default-language: Haskell2010
src/Data/Money.hs+3−2
@@ -1,11 +1,12 @@
11{-# LANGUAGE CPP #-}
22module Data.Money (module Export) where
33
4+import Data.Money.Currencies as Export
45import Data.Money.Internal as Export
56
6−#ifdef flag_AESON
7+#ifdef USE_AESON
78import Data.Money.JSON as Export ()
89#endif
9−#ifdef flag_REL8
10+#ifdef USE_REL8
1011import Data.Money.Rel8 as Export ()
1112#endif