mirror of
https://github.com/typeable/bucks.git
synced 2024-09-11 15:16:20 +03:00
Fix package flags.
This commit is contained in:
parent
f895f1bdd0
commit
37b155c69a
@ -10,6 +10,10 @@ maintainer: nick@typeable.io
|
||||
category: Data
|
||||
build-type: Simple
|
||||
|
||||
source-repository: head
|
||||
type: git
|
||||
location: https://github.com/typeable/bucks.git
|
||||
|
||||
flag aeson
|
||||
description: Enable Aeson instances
|
||||
default: False
|
||||
@ -33,9 +37,11 @@ library
|
||||
if flag(aeson)
|
||||
other-modules: Data.Money.JSON
|
||||
build-depends: aeson >= 2.0 && < 3.0
|
||||
ghc-options: -DUSE_AESON
|
||||
if flag(rel8)
|
||||
other-modules: Data.Money.Rel8
|
||||
build-depends: rel8 >= 1.4,
|
||||
scientific
|
||||
ghc-options: -DUSE_REL8
|
||||
hs-source-dirs: src
|
||||
default-language: Haskell2010
|
||||
|
@ -1,11 +1,12 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
module Data.Money (module Export) where
|
||||
|
||||
import Data.Money.Currencies as Export
|
||||
import Data.Money.Internal as Export
|
||||
|
||||
#ifdef flag_AESON
|
||||
#ifdef USE_AESON
|
||||
import Data.Money.JSON as Export ()
|
||||
#endif
|
||||
#ifdef flag_REL8
|
||||
#ifdef USE_REL8
|
||||
import Data.Money.Rel8 as Export ()
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user