@@ -1,7 +1,21 @@
1name: servant-client
1name: servant-client
2version: 0.2
2version: 0.2
3−-- synopsis:
3+synopsis: automatical derivation of haskell functions that let you query servant webservices
4−-- description:
4+description:
5+ This library lets you derive automatically Haskell functions that
6+ let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
10+ > type MyApi = "books" :> Get [Book] -- GET /books
11+ > :<|> "books" :> ReqBody Book :> Post Book -- POST /books
13+ > myApi :: Proxy MyApi
16+ > getAllBooks :: BaseUrl -> EitherT String IO [Book]
17+ > postNewBook :: Book -> BaseUrl -> EitherT String IO Book
18+ > (getAllBooks :<|> postNewBook) = client myApi
5license: BSD3
19license: BSD3
6license-file: LICENSE
20license-file: LICENSE
7author: Alp Mestanogullari, Sönke Hahn, Julian K. Arni
21author: Alp Mestanogullari, Sönke Hahn, Julian K. Arni
@@ -11,6 +25,11 @@ category: Web
11build-type: Simple
25build-type: Simple
12cabal-version: >=1.10
26cabal-version: >=1.10
13tested-with: GHC >= 7.8
27tested-with: GHC >= 7.8
28+homepage: http://haskell-servant.github.io/
29+Bug-reports: http://github.com/haskell-servant/servant-client/issues
30+source-repository head
32+ location: http://github.com/haskell-servant/servant-client.git
16 exposed-modules:
35 exposed-modules:
@@ -34,7 +53,7 @@ library
34 , transformers
53 , transformers
35 hs-source-dirs: src
54 hs-source-dirs: src
36 default-language: Haskell2010
55 default-language: Haskell2010
37− ghc-options: -O0 -Wall
56+ ghc-options: -Wall
39test-suite spec
58test-suite spec
40 type: exitcode-stdio-1.0
59 type: exitcode-stdio-1.0