git.iko.soy/typeable/http-api-data
on v0.5 help sign in
typeable/http-api-data/http-api-data.cabal
111 lines 3.5 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.5
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==8.0.2,
28 GHC==8.2.2,
29 GHC==8.4.4,
30 GHC==8.6.5,
31 GHC==8.8.4,
32 GHC==8.10.7,
33 GHC==9.0.2,
34 GHC==9.2.3,
35 GHC==9.4.1
37flag use-text-show
38 description: Use text-show library for efficient ToHttpApiData implementations.
39 default: False
40 manual: True
42library
43 hs-source-dirs: src/
44 include-dirs: include/
46 -- GHC bundled
47 build-depends: base >= 4.9 && < 4.17
48 , bytestring >= 0.10.8.1 && < 0.12
49 , containers >= 0.5.7.1 && < 0.7
50 , text >= 1.2.3.0 && < 1.3 || >=2.0 && <2.1
51 , transformers >= 0.5.2.0 && < 0.7
53 -- other-dependencies
54 build-depends:
55 attoparsec >= 0.13.2.2 && < 0.15
56 , attoparsec-iso8601 >= 1.1.0.0 && < 1.2
57 , base-compat >= 0.10.5 && < 0.13
58 , cookie >= 0.4.3 && < 0.5
59 , hashable >= 1.2.7.0 && < 1.5
60 , http-types >= 0.12.3 && < 0.13
61 , tagged >= 0.8.5 && < 0.9
62 , time-compat >= 1.9.5 && < 1.10
63 , unordered-containers >= 0.2.10.0 && < 0.3
64 , uuid-types >= 1.0.3 && < 1.1
66 if flag(use-text-show)
67 cpp-options: -DUSE_TEXT_SHOW
68 build-depends: text-show >= 3.8.2 && <3.10
70 exposed-modules:
71 Web.HttpApiData
72 Web.FormUrlEncoded
73 Web.Internal.FormUrlEncoded
74 Web.Internal.HttpApiData
75 ghc-options: -Wall
76 default-language: Haskell2010
78test-suite spec
79 type: exitcode-stdio-1.0
80 main-is: Spec.hs
81 other-modules:
82 Web.Internal.FormUrlEncodedSpec
83 Web.Internal.HttpApiDataSpec
84 Web.Internal.TestInstances
85 hs-source-dirs: test
86 ghc-options: -Wall
87 default-language: Haskell2010
88 build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.11
89 -- inherited depndencies
90 build-depends:
91 base
92 , base-compat
93 , bytestring
94 , cookie
95 , http-api-data
96 , text
97 , time-compat
98 , unordered-containers
99 , uuid-types
101 if !impl(ghc >= 7.10)
102 build-depends: nats
104 build-depends: HUnit >= 1.6.0.0 && <1.7
105 , hspec >= 2.7.1 && <2.11
106 , QuickCheck >= 2.13.1 && <2.15
107 , quickcheck-instances >= 0.3.25.2 && <0.4
109source-repository head
110 type: git
111 location: https://github.com/fizruk/http-api-data