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