fix some links in the cabal descriptions

This commit is contained in:
Alp Mestanogullari 2015-05-11 10:43:52 +02:00
parent 3745446128
commit 405d69d954
3 changed files with 3 additions and 14 deletions

View file

@ -5,17 +5,7 @@ description:
This library lets you derive automatically Haskell functions that This library lets you derive automatically Haskell functions that
let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice. let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
. .
Example below. See <http://haskell-servant.github.io/tutorial/client.html the client section of the tutorial>.
.
> type MyApi = "books" :> Get [Book] -- GET /books
> :<|> "books" :> ReqBody Book :> Post Book -- POST /books
>
> myApi :: Proxy MyApi
> myApi = Proxy
>
> getAllBooks :: BaseUrl -> EitherT String IO [Book]
> postNewBook :: Book -> BaseUrl -> EitherT String IO Book
> (getAllBooks :<|> postNewBook) = client myApi
. .
<https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG> <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
license: BSD3 license: BSD3

View file

@ -4,8 +4,7 @@ synopsis: A family of combinators for defining webservices APIs and s
description: description:
A family of combinators for defining webservices APIs and serving them A family of combinators for defining webservices APIs and serving them
. .
You can learn about the basics in <http://haskell-servant.github.io/getting-started/ the getting started> You can learn about the basics in the <http://haskell-servant.github.io/tutorial tutorial>.
guide.
. .
<https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here> <https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
is a runnable example, with comments, that defines a dummy API and implements is a runnable example, with comments, that defines a dummy API and implements

View file

@ -4,7 +4,7 @@ synopsis: A family of combinators for defining webservices APIs
description: description:
A family of combinators for defining webservices APIs and serving them A family of combinators for defining webservices APIs and serving them
. .
You can learn about the basics in <http://haskell-servant.github.io/getting-started/ the getting started> guide. You can learn about the basics in the <http://haskell-servant.github.io/tutorial tutorial>.
. .
<https://github.com/haskell-servant/servant-server/blob/master/example/greet.hs Here>'s a runnable example, with comments, that defines a dummy API and <https://github.com/haskell-servant/servant-server/blob/master/example/greet.hs Here>'s a runnable example, with comments, that defines a dummy API and
implements a webserver that serves this API, using the <http://hackage.haskell.org/package/servant-server servant-server> package. implements a webserver that serves this API, using the <http://hackage.haskell.org/package/servant-server servant-server> package.