git.iko.soy/typeable/http-api-data
on 3375ca6 help sign in
typeable/http-api-data/http-api-data.cabal
122 lines 3.8 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.4.3
5synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters.
6category: Web
7description:
8 This package defines typeclasses used for converting Haskell data types to and from HTTP API data.
9 .
10 Please see README.md
12license: BSD3
13license-file: LICENSE
14author: Nickolay Kudasov <nickolay.kudasov@gmail.com>
15maintainer: Nickolay Kudasov <nickolay.kudasov@gmail.com>
16homepage: http://github.com/fizruk/http-api-data
17stability: unstable
18build-type: Simple
20extra-source-files:
21 include/overlapping-compat.h
22 test/*.hs
23 CHANGELOG.md
24 README.md
26tested-with:
27 GHC==7.8.4,
28 GHC==7.10.3,
29 GHC==8.0.2,
30 GHC==8.2.2,
31 GHC==8.4.4,
32 GHC==8.6.5,
33 GHC==8.8.4,
34 GHC==8.10.3
36flag use-text-show
37 description: Use text-show library for efficient ToHttpApiData implementations.
38 default: False
39 manual: True
41library
42 hs-source-dirs: src/
43 include-dirs: include/
45 -- GHC bundled
46 build-depends: base >= 4.7 && < 4.15
47 , bytestring >= 0.10.4.0 && < 0.12
48 , containers >= 0.5.5.1 && < 0.7
49 , text >= 1.2.3.0 && < 1.3
50 , transformers >= 0.3 && < 0.6
52 -- so Semigroup Builder exists
53 if impl(ghc >= 8.0)
54 build-depends: bytestring >= 0.10.8.1
56 -- other-dependencies
57 build-depends:
58 attoparsec >= 0.13.2.2 && < 0.14
59 , attoparsec-iso8601 >= 1.0.2.0 && < 1.1
60 , base-compat >= 0.10.5 && < 0.12
61 , cookie >= 0.4.3 && < 0.5
62 , hashable >= 1.2.7.0 && < 1.4
63 , http-types >= 0.12.3 && < 0.13
64 , tagged >= 0.8.5 && < 0.9
65 , time-compat >= 1.9.5 && < 1.10
66 , unordered-containers >= 0.2.10.0 && < 0.3
67 , uuid-types >= 1.0.3 && < 1.1
69 if !impl(ghc >= 7.10)
70 build-depends:
71 nats >= 1.1.2 && < 1.2,
72 void >= 0.7.3 && < 0.8
74 if !impl(ghc >= 8.0)
75 build-depends: semigroups >= 0.18.5 && < 0.20
77 if flag(use-text-show)
78 cpp-options: -DUSE_TEXT_SHOW
79 build-depends: text-show >= 3.8.2 && <3.9
81 exposed-modules:
82 Web.HttpApiData
83 Web.FormUrlEncoded
84 Web.Internal.FormUrlEncoded
85 Web.Internal.HttpApiData
86 ghc-options: -Wall
87 default-language: Haskell2010
89test-suite spec
90 type: exitcode-stdio-1.0
91 main-is: Spec.hs
92 other-modules:
93 Web.Internal.FormUrlEncodedSpec
94 Web.Internal.HttpApiDataSpec
95 Web.Internal.TestInstances
96 hs-source-dirs: test
97 ghc-options: -Wall
98 default-language: Haskell2010
99 build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.8
100 -- inherited depndencies
101 build-depends:
102 base
103 , base-compat
104 , bytestring
105 , cookie
106 , http-api-data
107 , text
108 , time-compat
109 , unordered-containers
110 , uuid-types
112 if !impl(ghc >= 7.10)
113 build-depends: nats
115 build-depends: HUnit >= 1.6.0.0 && <1.7
116 , hspec >= 2.7.1 && <2.8
117 , QuickCheck >= 2.13.1 && <2.15
118 , quickcheck-instances >= 0.3.25.2 && <0.4
120source-repository head
121 type: git
122 location: https://github.com/fizruk/http-api-data