on master help sign in
typeable/id/id.cabal
85 lines 1.8 kB history raw
1cabal-version: 2.4
2name: id
3version: 0.2.0.0
4license-file: LICENSE
6flag cassava
7 description: Enable Postgresql support
8 default: True
9 manual: False
11flag postgres
12 description: Enable Postgresql support
13 default: True
14 manual: False
16flag flat
17 description: Enable Flat serialization support
18 default: True
19 manual: False
21flag store
22 description: Enable Data.Store serialization support
23 default: False
24 manual: False
26flag uuid-impl
27 description: Include some functions with extra dependencies.
28 Disable to reduce dependencies.
29 default: True
30 manual: False
32library
33 exposed-modules: Data.Id
34 build-depends:
35 , aeson >=1.0
36 , base >=4.12 && <5
37 , binary
38 , deepseq
39 , hashable
40 , http-api-data
41 , lens
42 , path-pieces
43 , text
44 , uuid-types
45 if flag(uuid-impl)
46 build-depends:
47 , uuid >=1.3.9
48 cpp-options: -DUSE_UUID
50 if !(impl(ghcjs) || arch(javascript) || arch(wasm32))
51 build-depends:
52 , openapi3
53 , QuickCheck
55 cpp-options: -DBACKEND
57 if (flag(postgres) && !(impl(ghcjs) || arch(javascript) || arch(wasm32)))
58 build-depends: postgresql-simple
59 cpp-options: -DUSE_POSTGRES
61 if (flag(cassava) && !(impl(ghcjs) || arch(javascript) || arch(wasm32)))
62 build-depends: cassava
63 cpp-options: -DUSE_CASSAVA
65 if flag(flat)
66 build-depends: flat >=0.4
67 cpp-options: -DUSE_FLAT
69 if flag(store)
70 build-depends: store
71 cpp-options: -DUSE_STORE
73 hs-source-dirs: src
74 default-language: Haskell2010
75 default-extensions:
76 AllowAmbiguousTypes
77 DeriveGeneric
78 DerivingStrategies
79 GeneralizedNewtypeDeriving
80 PolyKinds
81 RankNTypes
82 RoleAnnotations
83 ScopedTypeVariables
84 TypeApplications
85 TypeFamilies