bucks/bucks.cabal

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-11-28 12:58:55 +03:00
cabal-version: 3.0
name: bucks
version: 0.1
synopsis: Money handling library
-- description:
license: MIT
license-file: LICENSE
author: Nick
maintainer: nick@typeable.io
category: Data
build-type: Simple
2023-01-31 10:01:45 +03:00
source-repository head
2022-11-28 16:37:43 +03:00
type: git
location: https://github.com/typeable/bucks.git
2022-11-28 12:58:55 +03:00
flag aeson
description: Enable Aeson instances
default: False
manual: True
2023-01-24 03:29:57 +03:00
flag openapi
description: Enable OpenAPI instances
default: False
manual: True
2022-11-28 14:47:12 +03:00
flag rel8
description: Enable Rel8 support
default: False
manual: True
2022-11-28 12:58:55 +03:00
common warnings
ghc-options: -Wall
library
import: warnings
exposed-modules: Data.Money
Data.Money.Currencies
other-modules: Data.Money.Internal
build-depends: base >=4.14 && < 5.0,
groups >= 0.5
if flag(aeson)
other-modules: Data.Money.JSON
build-depends: aeson >= 2.0 && < 3.0
2023-01-31 10:01:45 +03:00
cpp-options: -DUSE_AESON
2023-01-24 03:29:57 +03:00
if flag(openapi)
other-modules: Data.Money.OpenApi
build-depends: openapi3
2023-01-31 10:01:45 +03:00
cpp-options: -DUSE_OPENAPI
2022-11-28 14:47:12 +03:00
if flag(rel8)
other-modules: Data.Money.Rel8
build-depends: rel8 >= 1.4,
scientific
2023-01-31 10:01:45 +03:00
cpp-options: -DUSE_REL8
2022-11-28 12:58:55 +03:00
hs-source-dirs: src
default-language: Haskell2010
2023-03-10 16:12:26 +03:00
test-suite rel8-test
import: warnings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Rel8Spec.hs
build-depends: base >= 4.14 && < 5.0,
bucks,
hasql,
hspec,
rel8
default-language: Haskell2010
if flag(rel8)
buildable: True
else
buildable: False