git.iko.soy/typeable/http-api-data
on v0.4.1.1 help sign in
typeable/http-api-data/http-api-data.cabal
118 lines 3.7 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.4.1.1
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.1
35flag use-text-show
36 description: Use text-show library for efficient ToHttpApiData implementations.
37 default: False
38 manual: True
40library
41 hs-source-dirs: src/
42 include-dirs: include/
44 -- GHC bundled
45 build-depends: base >= 4.7 && < 4.14
46 , bytestring >= 0.10.4.0 && < 0.11
47 , containers >= 0.5.5.1 && < 0.7
48 , text >= 1.2.3.0 && < 1.3
50 -- so Semigroup Builder exists
51 if impl(ghc >= 8.0)
52 build-depends: bytestring >= 0.10.8.1
54 -- other-dependencies
55 build-depends:
56 attoparsec >= 0.13.2.2 && < 0.14
57 , attoparsec-iso8601 >= 1.0.1.0 && < 1.1
58 , base-compat >= 0.10.5 && < 0.12
59 , cookie >= 0.4.3 && < 0.5
60 , hashable >= 1.2.7.0 && < 1.4
61 , http-types >= 0.12.3 && < 0.13
62 , tagged >= 0.8.5 && < 0.9
63 , time-compat >= 1.9.2 && < 1.10
64 , unordered-containers >= 0.2.10.0 && < 0.3
65 , uuid-types >= 1.0.3 && <1.1
67 if !impl(ghc >= 7.10)
68 build-depends:
69 nats >= 1.1.2 && < 1.2,
70 void >= 0.7.3 && < 0.8
72 if !impl(ghc >= 8.0)
73 build-depends: semigroups >= 0.18.5 && < 0.20
75 if flag(use-text-show)
76 cpp-options: -DUSE_TEXT_SHOW
77 build-depends: text-show >= 3.8.2 && <3.9
79 exposed-modules:
80 Web.HttpApiData
81 Web.FormUrlEncoded
82 Web.Internal.FormUrlEncoded
83 Web.Internal.HttpApiData
84 ghc-options: -Wall
85 default-language: Haskell2010
87test-suite spec
88 type: exitcode-stdio-1.0
89 main-is: Spec.hs
90 other-modules:
91 Web.Internal.FormUrlEncodedSpec
92 Web.Internal.HttpApiDataSpec
93 Web.Internal.TestInstances
94 hs-source-dirs: test
95 ghc-options: -Wall
96 default-language: Haskell2010
97 build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.8
98 -- inherited depndencies
99 build-depends:
100 base
101 , base-compat
102 , bytestring
103 , cookie
104 , http-api-data
105 , nats
106 , text
107 , time-compat
108 , unordered-containers
109 , uuid-types
111 build-depends: HUnit >= 1.6.0.0 && <1.7
112 , hspec >= 2.7.1 && <2.8
113 , QuickCheck >= 2.13.1 && <2.14
114 , quickcheck-instances >= 0.3.21 && <0.4
116source-repository head
117 type: git
118 location: https://github.com/fizruk/http-api-data