git.iko.soy/typeable/credit-card
on master help sign in
typeable/credit-card/credit-card.cabal
72 lines 2.1 kB history raw
1cabal-version: 2.4
2name: credit-card
3version: 0.1.0.0
4synopsis: Credit card validation
5license-file: LICENSE
6build-type: Simple
8Flag store
9 Description: Enable Data.Store serialization support
10 Default: False
11 Manual: False
13Flag postgres
14 Description: Enable Postgresql support
15 Default: True
16 Manual: False
18library
19 hs-source-dirs: src
20 ghc-options: -Wall
21 exposed-modules: Data.CreditCard
22 build-depends: base
23 , QuickCheck
24 , aeson
25 , aeson-inflections >= 0.1
26 , binary
27 , digit
28 , lens
29 , text
30 , time
31 if !(impl(ghcjs) || arch(javascript) || arch(wasm32)) && flag(postgres)
32 build-depends: postgresql-simple
33 cpp-options: -DUSE_POSTGRES
34 if !(impl(ghcjs) || arch(javascript) || arch(wasm32))
35 build-depends: openapi3
36 cpp-options: -DBACKEND
37 if flag(store)
38 build-depends:
39 store
40 cpp-options: -DUSE_STORE
41 default-extensions: DeriveAnyClass
42 default-language: Haskell2010
43 default-extensions: GeneralizedNewtypeDeriving
44 , DeriveGeneric
45 , ScopedTypeVariables
46 , TypeApplications
47 , ViewPatterns
48 ghc-options:
49 -Wall
50 if impl(ghc >= 8.10)
51 ghc-options: -Wunused-packages
52 -Wunused-packages
54test-suite spec
55 type: exitcode-stdio-1.0
56 hs-source-dirs: spec
57 main-is: Spec.hs
58 default-language: Haskell2010
59 build-depends: base
60 , aeson
61 , credit-card
62 , hspec
63 , text
64 build-tool-depends: hspec-discover:hspec-discover
65 other-modules: CreditCardSpec
66 default-extensions: ScopedTypeVariables
67 , OverloadedStrings
68 ghc-options:
69 -Wall
70 if impl(ghc >= 8.10)
71 ghc-options: -Wunused-packages
72 -Wunused-packages