git.iko.soy/typeable/http-api-data
on ccf757d help sign in
typeable/http-api-data/http-api-data.cabal
137 lines 4.0 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.4.1
4x-revision: 2
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: Custom
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.1
36custom-setup
37 setup-depends:
38 base,
39 Cabal,
40 cabal-doctest >=1.0.6 && <1.1
42flag use-text-show
43 description: Use text-show library for efficient ToHttpApiData implementations.
44 default: False
45 manual: True
47library
48 hs-source-dirs: src/
49 include-dirs: include/
51 -- GHC bundled
52 build-depends: base >= 4.7 && < 4.14
53 , bytestring >= 0.10.4.0 && < 0.11
54 , containers >= 0.5.5.1 && < 0.7
55 , text >= 1.2.3.0 && < 1.3
57 -- so Semigroup Builder exists
58 if impl(ghc >= 8.0)
59 build-depends: bytestring >= 0.10.8.1
61 -- other-dependencies
62 build-depends:
63 attoparsec >= 0.13.2.2 && < 0.14
64 , attoparsec-iso8601 >= 1.0.1.0 && < 1.1
65 , base-compat >= 0.10.5 && < 0.12
66 , cookie >= 0.4.3 && < 0.4.5
67 , hashable >= 1.2.7.0 && < 1.4
68 , http-types >= 0.12.3 && < 0.13
69 , tagged >= 0.8.5 && < 0.9
70 , time-compat >= 1.9.2 && < 1.10
71 , unordered-containers >= 0.2.10.0 && < 0.3
72 , uuid-types >= 1.0.3 && <1.1
74 if !impl(ghc >= 7.10)
75 build-depends:
76 nats >= 1.1.2 && < 1.2,
77 void >= 0.7.3 && < 0.8
79 if !impl(ghc >= 8.0)
80 build-depends: semigroups >= 0.18.5 && < 0.20
82 if flag(use-text-show)
83 cpp-options: -DUSE_TEXT_SHOW
84 build-depends: text-show >= 3.8.2 && <3.9
86 exposed-modules:
87 Web.HttpApiData
88 Web.FormUrlEncoded
89 Web.Internal.FormUrlEncoded
90 Web.Internal.HttpApiData
91 ghc-options: -Wall
92 default-language: Haskell2010
94test-suite spec
95 type: exitcode-stdio-1.0
96 main-is: Spec.hs
97 other-modules:
98 Web.Internal.FormUrlEncodedSpec
99 Web.Internal.HttpApiDataSpec
100 Web.Internal.TestInstances
101 hs-source-dirs: test
102 ghc-options: -Wall
103 default-language: Haskell2010
104 build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.8
105 -- inherited depndencies
106 build-depends:
107 base
108 , base-compat
109 , bytestring
110 , cookie
111 , http-api-data
112 , nats
113 , text
114 , time-compat
115 , unordered-containers
116 , uuid-types
118 build-depends: HUnit >= 1.6.0.0 && <1.7
119 , hspec >= 2.7.1 && <2.8
120 , QuickCheck >= 2.13.1 && <2.14
121 , quickcheck-instances >= 0.3.21 && <0.4
123test-suite doctests
124 ghc-options: -Wall
125 build-depends:
126 base,
127 directory >= 1.0,
128 doctest >= 0.16.0 && <0.17,
129 filepath
130 default-language: Haskell2010
131 hs-source-dirs: test
132 main-is: doctests.hs
133 type: exitcode-stdio-1.0
135source-repository head
136 type: git
137 location: https://github.com/fizruk/http-api-data