on master help sign in
Changelog and cabal file edits
a1a9955Oleg Grenrus
doc/tutorial/tinc.yamldeleted−13
@@ -1,13 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../../servant
4− - name: servant-server
5− path: ../../servant-server
6− - name: servant-client
7− path: ../../servant-client
8− - name: servant-js
9− path: ../../servant-js
10− - name: servant-docs
11− path: ../../servant-docs
12− - name: servant-foreign
13− path: ../../servant-foreign
servant-client-core/CHANGELOG.md+75
@@ -1,6 +1,81 @@
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client-core/CHANGELOG.md)
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client-core/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
3
3
4+0.15
5+----
6+
7+- Streaming refactoring.
8+ [#991](https://github.com/haskell-servant/servant/pull/991)
9+ [#1076](https://github.com/haskell-servant/servant/pull/1076)
10+ [#1077](https://github.com/haskell-servant/servant/pull/1077)
11+
12+ The streaming functionality (`Servant.API.Stream`) is refactored to use
13+ `servant`'s own `SourceIO` type (see `Servant.Types.SourceT` documentation),
14+ which replaces both `StreamGenerator` and `ResultStream` types.
15+
16+ New conversion type-classes are `ToSourceIO` and `FromSourceIO`
17+ (replacing `ToStreamGenerator` and `BuildFromStream`).
18+ There are instances for *conduit*, *pipes* and *machines* in new packages:
19+ [servant-conduit](https://hackage.haskell.org/package/servant-conduit)
20+ [servant-pipes](https://hackage.haskell.org/package/servant-pipes) and
21+ [servant-machines](https://hackage.haskell.org/package/servant-machines)
22+ respectively.
23+
24+ Writing new framing strategies is simpler. Check existing strategies for examples.
25+
26+ This change shouldn't affect you, if you don't use streaming endpoints.
27+
28+- *servant-client* Separate streaming client.
29+ [#1066](https://github.com/haskell-servant/servant/pull/1066)
30+
31+ We now have two `http-client` based clients,
32+ in `Servant.Client` and `Servant.Client.Streaming`.
33+
34+ Their API is the same, except for
35+ - `Servant.Client` **cannot** request `Stream` endpoints.
36+ - `Servant.Client` is *run* by direct
37+ `runClientM :: ClientM a -> ClientEnv -> IO (Either ServantError a)`
38+ - `Servant.Client.Streaming` **can** request `Stream` endpoints.
39+ - `Servant.Client.Streaming` is *used* by CPSised
40+ `withClientM :: ClientM a -> ClientEnv -> (Either ServantError a -> IO b) -> IO b`
41+
42+ To access `Stream` endpoints use `Servant.Client.Streaming` with
43+ `withClientM`; otherwise you can continue using `Servant.Client` with `runClientM`.
44+ You can use both too, `ClientEnv` and `BaseUrl` types are same for both.
45+
46+ **Note:** `Servant.Client.Streaming` doesn't *stream* non-`Stream` endpoints.
47+ Requesting ordinary `Verb` endpoints (e.g. `Get`) will block until
48+ the whole response is received.
49+
50+ There is `Servant.Client.Streaming.runClientM` function, but it has
51+ restricted type. `NFData a` constraint prevents using it with
52+ `SourceT`, `Conduit` etc. response types.
53+
54+ ```haskell
55+ runClientM :: NFData a => ClientM a -> ClientEnv -> IO (Either ServantError a)
56+ ```
57+
58+ This change shouldn't affect you, if you don't use streaming endpoints.
59+
60+- *servant-client-core* Related to the previous:
61+ `streamingResponse` is removed from `RunClient`.
62+ We have a new type-class:
63+
64+ ```haskell
65+ class RunClient m => RunStreamingClient m where
66+ withStreamingRequest :: Request -> (StreamingResponse -> IO a) -> m a
67+ ```
68+
69+- Drop support for GHC older than 8.0
70+ [#1008](https://github.com/haskell-servant/servant/pull/1008)
71+ [#1009](https://github.com/haskell-servant/servant/pull/1009)
72+
73+- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
74+ [#1076](https://github.com/haskell-servant/servant/pull/1076)
75+
76+- *servant-client-core* Add `aeson` and `Lift BaseUrl` instances
77+ [#1037](https://github.com/haskell-servant/servant/pull/1037)
78+
40.14.1
790.14.1
5------
80------
6
81
servant-client-core/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2017, Servant Contributors
1+Copyright (c) 2017-2018, Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-client-core/servant-client-core.cabal+13−10
@@ -1,27 +1,30 @@
1+cabal-version: >=1.10
1name: servant-client-core
2name: servant-client-core
2version: 0.15
3version: 0.15
4+
3synopsis: Core functionality and class for client function generation for servant APIs
5synopsis: Core functionality and class for client function generation for servant APIs
6+category: Servant, Web
4description:
7description:
5 This library provides backend-agnostic generation of client functions. For
8 This library provides backend-agnostic generation of client functions. For
6 more information, see the README.
9 more information, see the README.
10+
11+homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
7license: BSD3
13license: BSD3
8license-file: LICENSE
14license-file: LICENSE
9author: Servant Contributors
15author: Servant Contributors
10maintainer: haskell-servant-maintainers@googlegroups.com
16maintainer: haskell-servant-maintainers@googlegroups.com
11−homepage: http://haskell-servant.readthedocs.org/
12−bug-reports: http://github.com/haskell-servant/servant/issues
13−cabal-version: >=1.10
14−copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2017 Servant Contributors
17+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
15−category: Web
16build-type: Simple
18build-type: Simple
19+tested-with:
20+ GHC ==8.0.2
21+ || ==8.2.2
22+ || ==8.4.4
23+ || ==8.6.2
24+
17extra-source-files:
25extra-source-files:
18 CHANGELOG.md
26 CHANGELOG.md
19 README.md
27 README.md
20−tested-with:
21− GHC==8.0.2
22− GHC==8.2.2
23− GHC==8.4.4
24− GHC==8.6.2
25
28
26source-repository head
29source-repository head
27 type: git
30 type: git
servant-client-ghcjs/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-client-ghcjs/servant-client-ghcjs.cabal+12−7
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
1name: servant-client-ghcjs
2name: servant-client-ghcjs
2version: 0.14
3version: 0.14
4+
3−synopsis: automatical derivation of querying functions for servant webservices for ghcjs
5+synopsis: Automatic derivation of querying functions for servant webservices for GHCJS
6+category: Servant, Web
4description:
7description:
5 This library lets you automatically derive Haskell functions that
8 This library lets you automatically derive Haskell functions that
6 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
9 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
@@ -8,20 +11,22 @@ description:
8 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
11 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
9 .
12 .
10 <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
13 <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
14+
15+homepage: http://haskell-servant.readthedocs.org/
16+bug-reports: http://github.com/haskell-servant/servant/issues
11license: BSD3
17license: BSD3
12license-file: LICENSE
18license-file: LICENSE
13author: Servant Contributors
19author: Servant Contributors
14maintainer: haskell-servant-maintainers@googlegroups.com
20maintainer: haskell-servant-maintainers@googlegroups.com
15−copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2017 Servant Contributors
21+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
16−category: Servant, Web
17build-type: Simple
22build-type: Simple
18−cabal-version: >=1.10
19−tested-with: GHC >= 7.8
23+tested-with:
20−homepage: http://haskell-servant.readthedocs.org/
24+ GHC >= 7.8
21−Bug-reports: http://github.com/haskell-servant/servant/issues
25+
22extra-source-files:
26extra-source-files:
23 CHANGELOG.md
27 CHANGELOG.md
24 README.md
28 README.md
29+
25source-repository head
30source-repository head
26 type: git
31 type: git
27 location: http://github.com/haskell-servant/servant.git
32 location: http://github.com/haskell-servant/servant.git
servant-client-ghcjs/tinc.yamldeleted−5
@@ -1,5 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
4− - name: servant-server
5− path: ../servant-server
servant-client/CHANGELOG.md+66
@@ -1,6 +1,72 @@
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md)
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
3
3
4+0.15
5+----
6+
7+- Streaming refactoring.
8+ [#991](https://github.com/haskell-servant/servant/pull/991)
9+ [#1076](https://github.com/haskell-servant/servant/pull/1076)
10+ [#1077](https://github.com/haskell-servant/servant/pull/1077)
11+
12+ The streaming functionality (`Servant.API.Stream`) is refactored to use
13+ `servant`'s own `SourceIO` type (see `Servant.Types.SourceT` documentation),
14+ which replaces both `StreamGenerator` and `ResultStream` types.
15+
16+ New conversion type-classes are `ToSourceIO` and `FromSourceIO`
17+ (replacing `ToStreamGenerator` and `BuildFromStream`).
18+ There are instances for *conduit*, *pipes* and *machines* in new packages:
19+ [servant-conduit](https://hackage.haskell.org/package/servant-conduit)
20+ [servant-pipes](https://hackage.haskell.org/package/servant-pipes) and
21+ [servant-machines](https://hackage.haskell.org/package/servant-machines)
22+ respectively.
23+
24+ Writing new framing strategies is simpler. Check existing strategies for examples.
25+
26+ This change shouldn't affect you, if you don't use streaming endpoints.
27+
28+- *servant-client* Separate streaming client.
29+ [#1066](https://github.com/haskell-servant/servant/pull/1066)
30+
31+ We now have two `http-client` based clients,
32+ in `Servant.Client` and `Servant.Client.Streaming`.
33+
34+ Their API is the same, except for
35+ - `Servant.Client` **cannot** request `Stream` endpoints.
36+ - `Servant.Client` is *run* by direct
37+ `runClientM :: ClientM a -> ClientEnv -> IO (Either ServantError a)`
38+ - `Servant.Client.Streaming` **can** request `Stream` endpoints.
39+ - `Servant.Client.Streaming` is *used* by CPSised
40+ `withClientM :: ClientM a -> ClientEnv -> (Either ServantError a -> IO b) -> IO b`
41+
42+ To access `Stream` endpoints use `Servant.Client.Streaming` with
43+ `withClientM`; otherwise you can continue using `Servant.Client` with `runClientM`.
44+ You can use both too, `ClientEnv` and `BaseUrl` types are same for both.
45+
46+ **Note:** `Servant.Client.Streaming` doesn't *stream* non-`Stream` endpoints.
47+ Requesting ordinary `Verb` endpoints (e.g. `Get`) will block until
48+ the whole response is received.
49+
50+ There is `Servant.Client.Streaming.runClientM` function, but it has
51+ restricted type. `NFData a` constraint prevents using it with
52+ `SourceT`, `Conduit` etc. response types.
53+
54+ ```haskell
55+ runClientM :: NFData a => ClientM a -> ClientEnv -> IO (Either ServantError a)
56+ ```
57+
58+ This change shouldn't affect you, if you don't use streaming endpoints.
59+
60+- Drop support for GHC older than 8.0
61+ [#1008](https://github.com/haskell-servant/servant/pull/1008)
62+ [#1009](https://github.com/haskell-servant/servant/pull/1009)
63+
64+- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
65+ [#1076](https://github.com/haskell-servant/servant/pull/1076)
66+
67+ *servant-client-core* Add `aeson` and `Lift BaseUrl` instances
68+ [#1037](https://github.com/haskell-servant/servant/pull/1037)
69+
40.14
700.14
5----
71----
6
72
servant-client/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-client/servant-client.cabal+15−11
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
1name: servant-client
2name: servant-client
2version: 0.15
3version: 0.15
4+
3−synopsis: automatical derivation of querying functions for servant webservices
5+synopsis: Automatic derivation of querying functions for servant
6+category: Servant, Web
4description:
7description:
5 This library lets you derive automatically Haskell functions that
8 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.
9 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
@@ -8,24 +11,25 @@ description:
8 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
11 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
9 .
12 .
10 <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
13 <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
14+
15+homepage: http://haskell-servant.readthedocs.org/
16+bug-reports: http://github.com/haskell-servant/servant/issues
11license: BSD3
17license: BSD3
12license-file: LICENSE
18license-file: LICENSE
13author: Servant Contributors
19author: Servant Contributors
14maintainer: haskell-servant-maintainers@googlegroups.com
20maintainer: haskell-servant-maintainers@googlegroups.com
15−copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2017 Servant Contributors
21+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
16−category: Servant, Web
17build-type: Simple
22build-type: Simple
18−cabal-version: >=1.10
19tested-with:
23tested-with:
20− GHC==8.0.2
24+ GHC ==8.0.2
21− GHC==8.2.2
25+ || ==8.2.2
22− GHC==8.4.4
26+ || ==8.4.4
23− GHC==8.6.2
27+ || ==8.6.2
24−homepage: http://haskell-servant.readthedocs.org/
28+
25−Bug-reports: http://github.com/haskell-servant/servant/issues
26extra-source-files:
29extra-source-files:
27 CHANGELOG.md
30 CHANGELOG.md
28 README.md
31 README.md
32+
29source-repository head
33source-repository head
30 type: git
34 type: git
31 location: http://github.com/haskell-servant/servant.git
35 location: http://github.com/haskell-servant/servant.git
@@ -54,7 +58,7 @@ library
54 -- Strict dependency on `servant-client-core` as we re-export things.
58 -- Strict dependency on `servant-client-core` as we re-export things.
55 build-depends:
59 build-depends:
56 servant == 0.15.*
60 servant == 0.15.*
57− , servant-client-core == 0.15
61+ , servant-client-core >= 0.15 && <0.15.1
58
62
59 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
63 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
60 -- Here can be exceptions if we really need features from the newer versions.
64 -- Here can be exceptions if we really need features from the newer versions.
servant-client/tinc.yamldeleted−5
@@ -1,5 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
4− - name: servant-server
5− path: ../servant-server
servant-conduit/CHANGELOG.md+2−14
@@ -1,16 +1,4 @@
1−0.10
1+0.15
2----
2----
3
3
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
4+- First release with support for `servant-0.15` `Stream` refactoring.
5−* Add `TabSeparatedOpts` for `text/tab-separated-values`.
6−
7−0.9
8−---
9−
10−* Refactorerd `CSV`' type.
11−
12−0.8
13−---
14−
15−* Removed DefaultEncodeOpts and DefaultDecodeOpts in favor of a single
16− (new) DefaultOpts
servant-conduit/servant-conduit.cabal+11−4
@@ -1,23 +1,30 @@
1+cabal-version: >=1.10
1name: servant-conduit
2name: servant-conduit
2−version: 1
3+version: 0.15
4+
3synopsis: Servant Stream support for conduit.
5synopsis: Servant Stream support for conduit.
6+category: Servant, Web, Enumerator
4description: Servant Stream support for conduit.
7description: Servant Stream support for conduit.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'ConduitT'.
10+
5homepage: http://haskell-servant.readthedocs.org/
11homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
6license: BSD3
13license: BSD3
7license-file: LICENSE
14license-file: LICENSE
8author: Servant Contributors
15author: Servant Contributors
9maintainer: haskell-servant-maintainers@googlegroups.com
16maintainer: haskell-servant-maintainers@googlegroups.com
10copyright: 2018 Servant Contributors
17copyright: 2018 Servant Contributors
11−category: Web, Servant, Enumerator
12build-type: Simple
18build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-conduit/issues
15tested-with:
19tested-with:
16 GHC ==8.0.2
20 GHC ==8.0.2
17 || ==8.2.2
21 || ==8.2.2
18 || ==8.4.4
22 || ==8.4.4
19 || ==8.6.2
23 || ==8.6.2
20
24
25+extra-source-files:
26+ CHANGELOG.md
27+
21source-repository head
28source-repository head
22 type: git
29 type: git
23 location: http://github.com/haskell-servant/servant-conduit.git
30 location: http://github.com/haskell-servant/servant-conduit.git
servant-conduit/src/Servant/Conduit.hs+1−3
@@ -6,9 +6,7 @@
6{-# LANGUAGE ScopedTypeVariables #-}
6{-# LANGUAGE ScopedTypeVariables #-}
7{-# LANGUAGE UndecidableInstances #-}
7{-# LANGUAGE UndecidableInstances #-}
8{-# OPTIONS_GHC -Wno-orphans #-}
8{-# OPTIONS_GHC -Wno-orphans #-}
9−-- | TBW
10−--
11−-- This module exports 'ToSourceIO' and 'FromSourceIO' instances.
9+-- | This module exports 'ToSourceIO' and 'FromSourceIO' for 'ConduitT' instances.
12module Servant.Conduit (
10module Servant.Conduit (
13 ConduitToSourceIO (..),
11 ConduitToSourceIO (..),
14 ) where
12 ) where
servant-docs/CHANGELOG.md+6
@@ -1,6 +1,12 @@
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md)
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
3
3
4+0.11.3
5+------
6+
7+- Support `servant-0.15`
8+ - Instances for 'Stream' and 'StreamBody'
9+
40.11.2
100.11.2
5------
11------
6
12
servant-docs/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-docs/servant-docs.cabal+12−9
@@ -1,27 +1,30 @@
1+cabal-version: >=1.10
1name: servant-docs
2name: servant-docs
2version: 0.11.3
3version: 0.11.3
4+
3synopsis: generate API docs for your servant webservice
5synopsis: generate API docs for your servant webservice
6+category: Servant, Web
4description:
7description:
5 Library for generating API docs from a servant API definition.
8 Library for generating API docs from a servant API definition.
6 .
9 .
7 Runnable example <https://github.com/haskell-servant/servant/blob/master/servant-docs/example/greet.hs here>.
10 Runnable example <https://github.com/haskell-servant/servant/blob/master/servant-docs/example/greet.hs here>.
8 .
11 .
9 <https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md CHANGELOG>
12 <https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md CHANGELOG>
13+
14+homepage: http://haskell-servant.readthedocs.org/
15+bug-reports: http://github.com/haskell-servant/servant/issues
10license: BSD3
16license: BSD3
11license-file: LICENSE
17license-file: LICENSE
12author: Servant Contributors
18author: Servant Contributors
13maintainer: haskell-servant-maintainers@googlegroups.com
19maintainer: haskell-servant-maintainers@googlegroups.com
14−copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
20+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
15−category: Servant, Web
16build-type: Simple
21build-type: Simple
17−cabal-version: >=1.10
18tested-with:
22tested-with:
19− GHC==8.0.2
23+ GHC ==8.0.2
20− GHC==8.2.2
24+ || ==8.2.2
21− GHC==8.4.4
25+ || ==8.4.4
22− GHC==8.6.2
26+ || ==8.6.2
23−homepage: http://haskell-servant.readthedocs.org/
27+
24−Bug-reports: http://github.com/haskell-servant/servant/issues
25extra-source-files:
28extra-source-files:
26 CHANGELOG.md
29 CHANGELOG.md
27 README.md
30 README.md
servant-docs/tinc.yamldeleted−3
@@ -1,3 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
servant-foreign/CHANGELOG.md+12
@@ -1,6 +1,18 @@
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md)
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
3
3
4+0.15
5+----
6+
7+- *servant-foreign* Add support so `HasForeign` can be implemented for
8+ `MultipartForm` from [`servant-multipart`](http://hackage.haskell.org/package/servant-multipart)
9+ [#1035](https://github.com/haskell-servant/servant/pull/1035)
10+
11+- Drop support for GHC older than 8.0
12+ [#1008](https://github.com/haskell-servant/servant/pull/1008)
13+ [#1009](https://github.com/haskell-servant/servant/pull/1009)
14+
15+
40.11.1
160.11.1
5------
17------
6
18
servant-foreign/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-foreign/servant-foreign.cabal+13−9
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
1name: servant-foreign
2name: servant-foreign
2version: 0.15
3version: 0.15
4+
3synopsis: Helpers for generating clients for servant APIs in any programming language
5synopsis: Helpers for generating clients for servant APIs in any programming language
6+category: Servant, Web
4description:
7description:
5 Helper types and functions for generating client functions for servant APIs in any programming language
8 Helper types and functions for generating client functions for servant APIs in any programming language
6 .
9 .
@@ -9,23 +12,24 @@ description:
9 See the servant-js package for an example
12 See the servant-js package for an example
10 .
13 .
11 <https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md CHANGELOG>
14 <https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md CHANGELOG>
15+
16+homepage: http://haskell-servant.readthedocs.org/
17+bug-reports: http://github.com/haskell-servant/servant/issues
12license: BSD3
18license: BSD3
13license-file: LICENSE
19license-file: LICENSE
14author: Servant Contributors
20author: Servant Contributors
15maintainer: haskell-servant-maintainers@googlegroups.com
21maintainer: haskell-servant-maintainers@googlegroups.com
16−copyright: 2015-2016 Servant Contributors
22+copyright: 2015-2018 Servant Contributors
17−category: Servant, Web
18build-type: Simple
23build-type: Simple
19−cabal-version: >=1.10
24+tested-with:
25+ GHC ==8.0.2
26+ || ==8.2.2
27+ || ==8.4.4
28+ || ==8.6.2
29+
20extra-source-files:
30extra-source-files:
21 CHANGELOG.md
31 CHANGELOG.md
22 README.md
32 README.md
23−bug-reports: http://github.com/haskell-servant/servant/issues
24−tested-with:
25− GHC==8.0.2
26− GHC==8.2.2
27− GHC==8.4.4
28− GHC==8.6.2
29
33
30source-repository head
34source-repository head
31 type: git
35 type: git
servant-foreign/tinc.yamldeleted−3
@@ -1,3 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
servant-machines/CHANGELOG.md+2−14
@@ -1,16 +1,4 @@
1−0.10
1+0.15
2----
2----
3
3
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
4+- First release with support for `servant-0.15` `Stream` refactoring.
5−* Add `TabSeparatedOpts` for `text/tab-separated-values`.
6−
7−0.9
8−---
9−
10−* Refactorerd `CSV`' type.
11−
12−0.8
13−---
14−
15−* Removed DefaultEncodeOpts and DefaultDecodeOpts in favor of a single
16− (new) DefaultOpts
servant-machines/servant-machines.cabal+11−4
@@ -1,23 +1,30 @@
1+cabal-version: >=1.10
1name: servant-machines
2name: servant-machines
2−version: 1
3+version: 0.15
4+
3synopsis: Servant Stream support for machines
5synopsis: Servant Stream support for machines
6+category: Servant, Web, Enumerator
4description: Servant Stream support for machines.
7description: Servant Stream support for machines.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'MachineT'.
10+
5homepage: http://haskell-servant.readthedocs.org/
11homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
6license: BSD3
13license: BSD3
7license-file: LICENSE
14license-file: LICENSE
8author: Servant Contributors
15author: Servant Contributors
9maintainer: haskell-servant-maintainers@googlegroups.com
16maintainer: haskell-servant-maintainers@googlegroups.com
10copyright: 2018 Servant Contributors
17copyright: 2018 Servant Contributors
11−category: Web, Servant, Enumerator
12build-type: Simple
18build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-machines/issues
15tested-with:
19tested-with:
16 GHC ==8.0.2
20 GHC ==8.0.2
17 || ==8.2.2
21 || ==8.2.2
18 || ==8.4.4
22 || ==8.4.4
19 || ==8.6.2
23 || ==8.6.2
20
24
25+extra-source-files:
26+ CHANGELOG.md
27+
21source-repository head
28source-repository head
22 type: git
29 type: git
23 location: http://github.com/haskell-servant/servant-machines.git
30 location: http://github.com/haskell-servant/servant-machines.git
servant-machines/src/Servant/Machines.hs+1−3
@@ -5,9 +5,7 @@
5{-# LANGUAGE ScopedTypeVariables #-}
5{-# LANGUAGE ScopedTypeVariables #-}
6{-# LANGUAGE UndecidableInstances #-}
6{-# LANGUAGE UndecidableInstances #-}
7{-# OPTIONS_GHC -Wno-orphans #-}
7{-# OPTIONS_GHC -Wno-orphans #-}
8−-- | TBW
9−--
10−-- This module exports 'ToSourceIO' and 'FromSourceIO' instances.
8+-- | This module exports 'ToSourceIO' and 'FromSourceIO' for 'MachineT' instances.
11module Servant.Machines (
9module Servant.Machines (
12 MachineToSourceIO (..),
10 MachineToSourceIO (..),
13 ) where
11 ) where
servant-pipes/CHANGELOG.md+2−14
@@ -1,16 +1,4 @@
1−0.10
1+0.15
2----
2----
3
3
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
4+- First release with support for `servant-0.15` `Stream` refactoring.
5−* Add `TabSeparatedOpts` for `text/tab-separated-values`.
6−
7−0.9
8−---
9−
10−* Refactorerd `CSV`' type.
11−
12−0.8
13−---
14−
15−* Removed DefaultEncodeOpts and DefaultDecodeOpts in favor of a single
16− (new) DefaultOpts
servant-pipes/servant-pipes.cabal+11−4
@@ -1,23 +1,30 @@
1name: servant-pipes
1name: servant-pipes
2−version: 1
2+version: 0.15
3+cabal-version: >=1.10
4+
3synopsis: Servant Stream support for pipes
5synopsis: Servant Stream support for pipes
6+category: Servant, Web, Pipes
4description: Servant Stream support for pipes.
7description: Servant Stream support for pipes.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'Proxy' and 'SafeT'.
10+
5homepage: http://haskell-servant.readthedocs.org/
11homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
6license: BSD3
13license: BSD3
7license-file: LICENSE
14license-file: LICENSE
8author: Servant Contributors
15author: Servant Contributors
9maintainer: haskell-servant-maintainers@googlegroups.com
16maintainer: haskell-servant-maintainers@googlegroups.com
10copyright: 2018 Servant Contributors
17copyright: 2018 Servant Contributors
11−category: Web, Servant, Pipes
12build-type: Simple
18build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-pipes/issues
15tested-with:
19tested-with:
16 GHC ==8.0.2
20 GHC ==8.0.2
17 || ==8.2.2
21 || ==8.2.2
18 || ==8.4.4
22 || ==8.4.4
19 || ==8.6.2
23 || ==8.6.2
20
24
25+extra-source-files:
26+ CHANGELOG.md
27+
21source-repository head
28source-repository head
22 type: git
29 type: git
23 location: http://github.com/haskell-servant/servant-pipes.git
30 location: http://github.com/haskell-servant/servant-pipes.git
servant-pipes/src/Servant/Pipes.hs+1−3
@@ -6,9 +6,7 @@
6{-# LANGUAGE ScopedTypeVariables #-}
6{-# LANGUAGE ScopedTypeVariables #-}
7{-# LANGUAGE UndecidableInstances #-}
7{-# LANGUAGE UndecidableInstances #-}
8{-# OPTIONS_GHC -Wno-orphans #-}
8{-# OPTIONS_GHC -Wno-orphans #-}
9−-- | TBW
10−--
11−-- This module exports 'ToSourceIO' and 'FromSourceIO' instances.
9+-- | This module exports 'ToSourceIO' and 'FromSourceIO' for 'Proxy' and 'SafeT' instances.
12module Servant.Pipes (
10module Servant.Pipes (
13 PipesToSourceIO (..),
11 PipesToSourceIO (..),
14 ) where
12 ) where
servant-server/CHANGELOG.md+50
@@ -1,6 +1,56 @@
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md)
1[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
2[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
3
3
4+0.15
5+----
6+
7+- Streaming refactoring.
8+ [#991](https://github.com/haskell-servant/servant/pull/991)
9+ [#1076](https://github.com/haskell-servant/servant/pull/1076)
10+ [#1077](https://github.com/haskell-servant/servant/pull/1077)
11+
12+ The streaming functionality (`Servant.API.Stream`) is refactored to use
13+ `servant`'s own `SourceIO` type (see `Servant.Types.SourceT` documentation),
14+ which replaces both `StreamGenerator` and `ResultStream` types.
15+
16+ New conversion type-classes are `ToSourceIO` and `FromSourceIO`
17+ (replacing `ToStreamGenerator` and `BuildFromStream`).
18+ There are instances for *conduit*, *pipes* and *machines* in new packages:
19+ [servant-conduit](https://hackage.haskell.org/package/servant-conduit)
20+ [servant-pipes](https://hackage.haskell.org/package/servant-pipes) and
21+ [servant-machines](https://hackage.haskell.org/package/servant-machines)
22+ respectively.
23+
24+ Writing new framing strategies is simpler. Check existing strategies for examples.
25+
26+ This change shouldn't affect you, if you don't use streaming endpoints.
27+
28+- Drop support for GHC older than 8.0
29+ [#1008](https://github.com/haskell-servant/servant/pull/1008)
30+ [#1009](https://github.com/haskell-servant/servant/pull/1009)
31+
32+- *servant* NewlineFraming encodes newline after each element (i.e last)
33+ [#1079](https://github.com/haskell-servant/servant/pull/1079)
34+ [#1011](https://github.com/haskell-servant/servant/issues/1011)
35+
36+- *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a`
37+ [#1064](https://github.com/haskell-servant/servant/pull/1064)
38+
39+- *servant-server* Add `MonadMask Handler`
40+ [#1068](https://github.com/haskell-servant/servant/pull/1068)
41+
42+- *servant* Export `GetHeaders'`
43+ [#1052](https://github.com/haskell-servant/servant/pull/1052)
44+
45+- *servant* Add `Bitraversable` and other `Bi-` instances for `:<|>`
46+ [#1032](https://github.com/haskell-servant/servant/pull/1032)
47+
48+- *servant* Add `PutCreated` method type alias
49+ [#1024](https://github.com/haskell-servant/servant/pull/1024)
50+
51+- *servant* Add `ToSourceIO (NonEmpty a)` instance
52+ [#988](https://github.com/haskell-servant/servant/pull/988)
53+
40.14.1
540.14.1
5------
55------
6
56
servant-server/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant-server/servant-server.cabal+13−9
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
1name: servant-server
2name: servant-server
2version: 0.15
3version: 0.15
4+
3synopsis: A family of combinators for defining webservices APIs and serving them
5synopsis: A family of combinators for defining webservices APIs and serving them
6+category: Servant, Web
4description:
7description:
5 A family of combinators for defining webservices APIs and serving them
8 A family of combinators for defining webservices APIs and serving them
6 .
9 .
@@ -11,21 +14,21 @@ description:
11 a webserver that serves this API, using this package.
14 a webserver that serves this API, using this package.
12 .
15 .
13 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
16 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
17+
14homepage: http://haskell-servant.readthedocs.org/
18homepage: http://haskell-servant.readthedocs.org/
15−Bug-reports: http://github.com/haskell-servant/servant/issues
19+bug-reports: http://github.com/haskell-servant/servant/issues
16license: BSD3
20license: BSD3
17license-file: LICENSE
21license-file: LICENSE
18author: Servant Contributors
22author: Servant Contributors
19maintainer: haskell-servant-maintainers@googlegroups.com
23maintainer: haskell-servant-maintainers@googlegroups.com
20−copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
24+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
21−category: Servant, Web
22build-type: Custom
25build-type: Custom
23−cabal-version: >=1.10
24tested-with:
26tested-with:
25− GHC==8.0.2
27+ GHC ==8.0.2
26− GHC==8.2.2
28+ || ==8.2.2
27− GHC==8.4.4
29+ || ==8.4.4
28− GHC==8.6.2
30+ || ==8.6.2
31+
29extra-source-files:
32extra-source-files:
30 CHANGELOG.md
33 CHANGELOG.md
31 README.md
34 README.md
@@ -71,8 +74,9 @@ library
71 , filepath >= 1.4.1.1 && < 1.5
74 , filepath >= 1.4.1.1 && < 1.5
72
75
73 -- Servant dependencies
76 -- Servant dependencies
77+ -- strict dependency as we re-export 'servant' things.
74 build-depends:
78 build-depends:
75− servant >= 0.15 && < 0.16
79+ servant >= 0.15 && < 0.15.1
76
80
77 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
81 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
78 -- Here can be exceptions if we really need features from the newer versions.
82 -- Here can be exceptions if we really need features from the newer versions.
servant-server/tinc.yamldeleted−3
@@ -1,3 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
servant/CHANGELOG.md+21−8
@@ -11,7 +11,7 @@
11 [#1077](https://github.com/haskell-servant/servant/pull/1077)
11 [#1077](https://github.com/haskell-servant/servant/pull/1077)
12
12
13 The streaming functionality (`Servant.API.Stream`) is refactored to use
13 The streaming functionality (`Servant.API.Stream`) is refactored to use
14− `servant` own `SourceIO` type (see `Servant.Types.SourceT` documentation),
14+ `servant`'s own `SourceIO` type (see `Servant.Types.SourceT` documentation),
15 which replaces both `StreamGenerator` and `ResultStream` types.
15 which replaces both `StreamGenerator` and `ResultStream` types.
16
16
17 New conversion type-classes are `ToSourceIO` and `FromSourceIO`
17 New conversion type-classes are `ToSourceIO` and `FromSourceIO`
@@ -58,32 +58,45 @@
58
58
59 This change shouldn't affect you, if you don't use streaming endpoints.
59 This change shouldn't affect you, if you don't use streaming endpoints.
60
60
61+- *servant-client-core* Related to the previous:
62+ `streamingResponse` is removed from `RunClient`.
63+ We have a new type-class:
64+
65+ ```haskell
66+ class RunClient m => RunStreamingClient m where
67+ withStreamingRequest :: Request -> (StreamingResponse -> IO a) -> m a
68+ ```
69+
61- Drop support for GHC older than 8.0
70- Drop support for GHC older than 8.0
62 [#1008](https://github.com/haskell-servant/servant/pull/1008)
71 [#1008](https://github.com/haskell-servant/servant/pull/1008)
63 [#1009](https://github.com/haskell-servant/servant/pull/1009)
72 [#1009](https://github.com/haskell-servant/servant/pull/1009)
64
73
65−- `ComprehensiveAPI` is a part of public API in `Servant.Test.ComprehensiveAPI`` module.
74+- *servant* `ComprehensiveAPI` is a part of public API in `Servant.Test.ComprehensiveAPI` module.
66 This API type is used to verify that libraries implement all core combinators.
75 This API type is used to verify that libraries implement all core combinators.
67 Now we won't change this type between major versions.
76 Now we won't change this type between major versions.
68 (This has been true for some time already).
77 (This has been true for some time already).
69 [#1070](https://github.com/haskell-servant/servant/pull/1070)
78 [#1070](https://github.com/haskell-servant/servant/pull/1070)
70
79
71−- Remove `Servant.Utils.Enter` module
80+- *servant* Remove `Servant.Utils.Enter` module
72 (deprecated in `servant-0.12` in favour of `hoistServer`)
81 (deprecated in `servant-0.12` in favour of `hoistServer`)
73 [#996](https://github.com/haskell-servant/servant/pull/996)
82 [#996](https://github.com/haskell-servant/servant/pull/996)
74
83
84+- *servant-foreign* Add support so `HasForeign` can be implemented for
85+ `MultipartForm` from [`servant-multipart`](http://hackage.haskell.org/package/servant-multipart)
86+ [#1035](https://github.com/haskell-servant/servant/pull/1035)
87+
75### Other changes
88### Other changes
76
89
77- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
90- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
78 [#1076](https://github.com/haskell-servant/servant/pull/1076)
91 [#1076](https://github.com/haskell-servant/servant/pull/1076)
79
92
93+- *servant* NewlineFraming encodes newline after each element (i.e last)
94+ [#1079](https://github.com/haskell-servant/servant/pull/1079)
95+ [#1011](https://github.com/haskell-servant/servant/issues/1011)
96+
80- *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a`
97- *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a`
81 [#1064](https://github.com/haskell-servant/servant/pull/1064)
98 [#1064](https://github.com/haskell-servant/servant/pull/1064)
82
99
83−- *servant-foreign* Add support so `HasForeign` can be implemented for
84− `MultipartForm` from [`servant-multipart`](http://hackage.haskell.org/package/servant-multipart)
85− [#1035](https://github.com/haskell-servant/servant/pull/1035)
86−
87- *servant-server* Add `MonadMask Handler`
100- *servant-server* Add `MonadMask Handler`
88 [#1068](https://github.com/haskell-servant/servant/pull/1068)
101 [#1068](https://github.com/haskell-servant/servant/pull/1068)
89
102
@@ -102,7 +115,7 @@
102- *servant-client-core* Add `aeson` and `Lift BaseUrl` instances
115- *servant-client-core* Add `aeson` and `Lift BaseUrl` instances
103 [#1037](https://github.com/haskell-servant/servant/pull/1037)
116 [#1037](https://github.com/haskell-servant/servant/pull/1037)
104
117
105−- Add `ToSourceIO (NonEmpty a)` instance
118+- *servant* Add `ToSourceIO (NonEmpty a)` instance
106 [#988](https://github.com/haskell-servant/servant/pull/988)
119 [#988](https://github.com/haskell-servant/servant/pull/988)
107
120
108- Development process improvements
121- Development process improvements
servant/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, Servant Contributors
1+Copyright (c) 2014-2016, Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2
2
3All rights reserved.
3All rights reserved.
4
4
servant/servant.cabal+4−4
@@ -21,10 +21,10 @@ copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant
21build-type: Custom
21build-type: Custom
22
22
23tested-with:
23tested-with:
24− GHC==8.0.2
24+ GHC ==8.0.2
25− GHC==8.2.2
25+ || ==8.2.2
26− GHC==8.4.4
26+ || ==8.4.4
27− GHC==8.6.2
27+ || ==8.6.2
28
28
29extra-source-files:
29extra-source-files:
30 CHANGELOG.md
30 CHANGELOG.md