Fix package flags.

This commit is contained in:
Nick 2022-11-28 13:37:43 +00:00
parent f895f1bdd0
commit 37b155c69a
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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