git.iko.soy/typeable/http-api-data
on 35bda84 help sign in
typeable/http-api-data/http-api-data.cabal
125 lines 3.8 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.4.3
4x-revision: 5
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.7,
36 GHC==9.0.1,
37 GHC==9.2.1
39flag use-text-show
40 description: Use text-show library for efficient ToHttpApiData implementations.
41 default: False
42 manual: True
44library
45 hs-source-dirs: src/
46 include-dirs: include/
48 -- GHC bundled
49 build-depends: base >= 4.7 && < 4.17
50 , bytestring >= 0.10.4.0 && < 0.12
51 , containers >= 0.5.5.1 && < 0.7
52 , text >= 1.2.3.0 && < 1.3
53 , transformers >= 0.3 && < 0.7
55 -- so Semigroup Builder exists
56 if impl(ghc >= 8.0)
57 build-depends: bytestring >= 0.10.8.1
59 -- other-dependencies
60 build-depends:
61 attoparsec >= 0.13.2.2 && < 0.15
62 , attoparsec-iso8601 >= 1.0.2.0 && < 1.1
63 , base-compat >= 0.10.5 && < 0.13
64 , cookie >= 0.4.3 && < 0.5
65 , hashable >= 1.2.7.0 && < 1.5
66 , http-types >= 0.12.3 && < 0.13
67 , tagged >= 0.8.5 && < 0.9
68 , time-compat >= 1.9.5 && < 1.10
69 , unordered-containers >= 0.2.10.0 && < 0.3
70 , uuid-types >= 1.0.3 && < 1.1
72 if !impl(ghc >= 7.10)
73 build-depends:
74 nats >= 1.1.2 && < 1.2,
75 void >= 0.7.3 && < 0.8
77 if !impl(ghc >= 8.0)
78 build-depends: semigroups >= 0.18.5 && < 0.21
80 if flag(use-text-show)
81 cpp-options: -DUSE_TEXT_SHOW
82 build-depends: text-show >= 3.8.2 && <3.10
84 exposed-modules:
85 Web.HttpApiData
86 Web.FormUrlEncoded
87 Web.Internal.FormUrlEncoded
88 Web.Internal.HttpApiData
89 ghc-options: -Wall
90 default-language: Haskell2010
92test-suite spec
93 type: exitcode-stdio-1.0
94 main-is: Spec.hs
95 other-modules:
96 Web.Internal.FormUrlEncodedSpec
97 Web.Internal.HttpApiDataSpec
98 Web.Internal.TestInstances
99 hs-source-dirs: test
100 ghc-options: -Wall
101 default-language: Haskell2010
102 build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.10
103 -- inherited depndencies
104 build-depends:
105 base
106 , base-compat
107 , bytestring
108 , cookie
109 , http-api-data
110 , text
111 , time-compat
112 , unordered-containers
113 , uuid-types
115 if !impl(ghc >= 7.10)
116 build-depends: nats
118 build-depends: HUnit >= 1.6.0.0 && <1.7
119 , hspec >= 2.7.1 && <2.10
120 , QuickCheck >= 2.13.1 && <2.15
121 , quickcheck-instances >= 0.3.25.2 && <0.4
123source-repository head
124 type: git
125 location: https://github.com/fizruk/http-api-data