git.iko.soy/typeable/servant
on master help sign in
Changelog and cabal file edits

- Add #1079, #1011 entry - Stricter internal dependencies - Unify .cabal files - Correct -conduit, -machines, -pipes changelog - Fix years in LICENSEs - Remove tinc.yamls - Tweaks to 0.15 changelog - Add changelogs for all packages - Add changelogs for new packages (extra-source-files)

commita1a99552b58bf49f8f142be62eef8b6eae14b7c0 authorOleg Grenrus <oleg.grenrus@iki.fi> dateMon 12 Nov 2018, 22:04 (8 years ago) parentc62721e
35 files changed+361−169
doc/tutorial/tinc.yaml−13 servant-client-core/CHANGELOG.md+75 servant-client-core/LICENSE+1−1 servant-client-core/servant-client-core.cabal+13−10 servant-client-ghcjs/LICENSE+1−1 servant-client-ghcjs/servant-client-ghcjs.cabal+12−7 servant-client-ghcjs/tinc.yaml−5 servant-client/CHANGELOG.md+66 servant-client/LICENSE+1−1 servant-client/servant-client.cabal+15−11 servant-client/tinc.yaml−5 servant-conduit/CHANGELOG.md+2−14 servant-conduit/servant-conduit.cabal+11−4 servant-conduit/src/Servant/Conduit.hs+1−3 servant-docs/CHANGELOG.md+6 servant-docs/LICENSE+1−1 servant-docs/servant-docs.cabal+12−9 servant-docs/tinc.yaml−3 servant-foreign/CHANGELOG.md+12 servant-foreign/LICENSE+1−1 servant-foreign/servant-foreign.cabal+13−9 servant-foreign/tinc.yaml−3 servant-machines/CHANGELOG.md+2−14 servant-machines/servant-machines.cabal+11−4 servant-machines/src/Servant/Machines.hs+1−3 servant-pipes/CHANGELOG.md+2−14 servant-pipes/servant-pipes.cabal+11−4 servant-pipes/src/Servant/Pipes.hs+1−3 servant-server/CHANGELOG.md+50 servant-server/LICENSE+1−1 servant-server/servant-server.cabal+13−9 servant-server/tinc.yaml−3 servant/CHANGELOG.md+21−8 servant/LICENSE+1−1 servant/servant.cabal+4−4
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 @@
11[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client-core/CHANGELOG.md)
22[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
33
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+
4790.14.1
580------
681
servant-client-core/LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright (c) 2017, Servant Contributors
1+Copyright (c) 2017-2018, Servant Contributors
22
33All rights reserved.
44
servant-client-core/servant-client-core.cabal+13−10
@@ -1,27 +1,30 @@
1+cabal-version: >=1.10
12name: servant-client-core
23version: 0.15
4+
35synopsis: Core functionality and class for client function generation for servant APIs
6+category: Servant, Web
47description:
58 This library provides backend-agnostic generation of client functions. For
69 more information, see the README.
10+
11+homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
713license: BSD3
814license-file: LICENSE
915author: Servant Contributors
1016maintainer: 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
15−category: Web
17+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
1618build-type: Simple
19+tested-with:
20+ GHC ==8.0.2
21+ || ==8.2.2
22+ || ==8.4.4
23+ || ==8.6.2
24+
1725extra-source-files:
1826 CHANGELOG.md
1927 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
2528
2629source-repository head
2730 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
22
33All rights reserved.
44
servant-client-ghcjs/servant-client-ghcjs.cabal+12−7
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
12name: servant-client-ghcjs
23version: 0.14
3−synopsis: automatical derivation of querying functions for servant webservices for ghcjs
4+
5+synopsis: Automatic derivation of querying functions for servant webservices for GHCJS
6+category: Servant, Web
47description:
58 This library lets you automatically derive Haskell functions that
69 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
@@ -8,20 +11,22 @@ description:
811 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
912 .
1013 <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
1117license: BSD3
1218license-file: LICENSE
1319author: Servant Contributors
1420maintainer: haskell-servant-maintainers@googlegroups.com
15−copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2017 Servant Contributors
16−category: Servant, Web
21+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
1722build-type: Simple
18−cabal-version: >=1.10
19−tested-with: GHC >= 7.8
20−homepage: http://haskell-servant.readthedocs.org/
21−Bug-reports: http://github.com/haskell-servant/servant/issues
23+tested-with:
24+ GHC >= 7.8
25+
2226extra-source-files:
2327 CHANGELOG.md
2428 README.md
29+
2530source-repository head
2631 type: git
2732 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 @@
11[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md)
22[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
33
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+
4700.14
571----
672
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
22
33All rights reserved.
44
servant-client/servant-client.cabal+15−11
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
12name: servant-client
23version: 0.15
3−synopsis: automatical derivation of querying functions for servant webservices
4+
5+synopsis: Automatic derivation of querying functions for servant
6+category: Servant, Web
47description:
58 This library lets you derive automatically Haskell functions that
69 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
@@ -8,24 +11,25 @@ description:
811 See <http://haskell-servant.readthedocs.org/en/stable/tutorial/Client.html the client section of the tutorial>.
912 .
1013 <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
1117license: BSD3
1218license-file: LICENSE
1319author: Servant Contributors
1420maintainer: haskell-servant-maintainers@googlegroups.com
15−copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2017 Servant Contributors
16−category: Servant, Web
21+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
1722build-type: Simple
18−cabal-version: >=1.10
1923tested-with:
20− GHC==8.0.2
21− GHC==8.2.2
22− GHC==8.4.4
23− GHC==8.6.2
24−homepage: http://haskell-servant.readthedocs.org/
25−Bug-reports: http://github.com/haskell-servant/servant/issues
24+ GHC ==8.0.2
25+ || ==8.2.2
26+ || ==8.4.4
27+ || ==8.6.2
28+
2629extra-source-files:
2730 CHANGELOG.md
2831 README.md
32+
2933source-repository head
3034 type: git
3135 location: http://github.com/haskell-servant/servant.git
@@ -54,7 +58,7 @@ library
5458 -- Strict dependency on `servant-client-core` as we re-export things.
5559 build-depends:
5660 servant == 0.15.*
57− , servant-client-core == 0.15
61+ , servant-client-core >= 0.15 && <0.15.1
5862
5963 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
6064 -- 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
22----
33
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
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
4+- First release with support for `servant-0.15` `Stream` refactoring.
servant-conduit/servant-conduit.cabal+11−4
@@ -1,23 +1,30 @@
1+cabal-version: >=1.10
12name: servant-conduit
2−version: 1
3+version: 0.15
4+
35synopsis: Servant Stream support for conduit.
6+category: Servant, Web, Enumerator
47description: Servant Stream support for conduit.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'ConduitT'.
10+
511homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
613license: BSD3
714license-file: LICENSE
815author: Servant Contributors
916maintainer: haskell-servant-maintainers@googlegroups.com
1017copyright: 2018 Servant Contributors
11−category: Web, Servant, Enumerator
1218build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-conduit/issues
1519tested-with:
1620 GHC ==8.0.2
1721 || ==8.2.2
1822 || ==8.4.4
1923 || ==8.6.2
2024
25+extra-source-files:
26+ CHANGELOG.md
27+
2128source-repository head
2229 type: git
2330 location: http://github.com/haskell-servant/servant-conduit.git
servant-conduit/src/Servant/Conduit.hs+1−3
@@ -6,9 +6,7 @@
66{-# LANGUAGE ScopedTypeVariables #-}
77{-# LANGUAGE UndecidableInstances #-}
88{-# 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.
1210module Servant.Conduit (
1311 ConduitToSourceIO (..),
1412 ) where
servant-docs/CHANGELOG.md+6
@@ -1,6 +1,12 @@
11[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md)
22[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
33
4+0.11.3
5+------
6+
7+- Support `servant-0.15`
8+ - Instances for 'Stream' and 'StreamBody'
9+
4100.11.2
511------
612
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
22
33All rights reserved.
44
servant-docs/servant-docs.cabal+12−9
@@ -1,27 +1,30 @@
1+cabal-version: >=1.10
12name: servant-docs
23version: 0.11.3
4+
35synopsis: generate API docs for your servant webservice
6+category: Servant, Web
47description:
58 Library for generating API docs from a servant API definition.
69 .
710 Runnable example <https://github.com/haskell-servant/servant/blob/master/servant-docs/example/greet.hs here>.
811 .
912 <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
1016license: BSD3
1117license-file: LICENSE
1218author: Servant Contributors
1319maintainer: haskell-servant-maintainers@googlegroups.com
14−copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
15−category: Servant, Web
20+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
1621build-type: Simple
17−cabal-version: >=1.10
1822tested-with:
19− GHC==8.0.2
20− GHC==8.2.2
21− GHC==8.4.4
22− GHC==8.6.2
23−homepage: http://haskell-servant.readthedocs.org/
24−Bug-reports: http://github.com/haskell-servant/servant/issues
23+ GHC ==8.0.2
24+ || ==8.2.2
25+ || ==8.4.4
26+ || ==8.6.2
27+
2528extra-source-files:
2629 CHANGELOG.md
2730 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 @@
11[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-foreign/CHANGELOG.md)
22[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
33
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+
4160.11.1
517------
618
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
22
33All rights reserved.
44
servant-foreign/servant-foreign.cabal+13−9
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
12name: servant-foreign
23version: 0.15
4+
35synopsis: Helpers for generating clients for servant APIs in any programming language
6+category: Servant, Web
47description:
58 Helper types and functions for generating client functions for servant APIs in any programming language
69 .
@@ -9,23 +12,24 @@ description:
912 See the servant-js package for an example
1013 .
1114 <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
1218license: BSD3
1319license-file: LICENSE
1420author: Servant Contributors
1521maintainer: haskell-servant-maintainers@googlegroups.com
16−copyright: 2015-2016 Servant Contributors
17−category: Servant, Web
22+copyright: 2015-2018 Servant Contributors
1823build-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+
2030extra-source-files:
2131 CHANGELOG.md
2232 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
2933
3034source-repository head
3135 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
22----
33
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
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
4+- First release with support for `servant-0.15` `Stream` refactoring.
servant-machines/servant-machines.cabal+11−4
@@ -1,23 +1,30 @@
1+cabal-version: >=1.10
12name: servant-machines
2−version: 1
3+version: 0.15
4+
35synopsis: Servant Stream support for machines
6+category: Servant, Web, Enumerator
47description: Servant Stream support for machines.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'MachineT'.
10+
511homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
613license: BSD3
714license-file: LICENSE
815author: Servant Contributors
916maintainer: haskell-servant-maintainers@googlegroups.com
1017copyright: 2018 Servant Contributors
11−category: Web, Servant, Enumerator
1218build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-machines/issues
1519tested-with:
1620 GHC ==8.0.2
1721 || ==8.2.2
1822 || ==8.4.4
1923 || ==8.6.2
2024
25+extra-source-files:
26+ CHANGELOG.md
27+
2128source-repository head
2229 type: git
2330 location: http://github.com/haskell-servant/servant-machines.git
servant-machines/src/Servant/Machines.hs+1−3
@@ -5,9 +5,7 @@
55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE UndecidableInstances #-}
77{-# 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.
119module Servant.Machines (
1210 MachineToSourceIO (..),
1311 ) where
servant-pipes/CHANGELOG.md+2−14
@@ -1,16 +1,4 @@
1−0.10
1+0.15
22----
33
4−* `EncodeOpts` and `DecodeOpts` merged into just `EncodeOpts`.
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
4+- First release with support for `servant-0.15` `Stream` refactoring.
servant-pipes/servant-pipes.cabal+11−4
@@ -1,23 +1,30 @@
11name: servant-pipes
2−version: 1
2+version: 0.15
3+cabal-version: >=1.10
4+
35synopsis: Servant Stream support for pipes
6+category: Servant, Web, Pipes
47description: Servant Stream support for pipes.
8+ .
9+ Provides 'ToSourceIO' and 'FromSourceIO' instances for 'Proxy' and 'SafeT'.
10+
511homepage: http://haskell-servant.readthedocs.org/
12+bug-reports: http://github.com/haskell-servant/servant/issues
613license: BSD3
714license-file: LICENSE
815author: Servant Contributors
916maintainer: haskell-servant-maintainers@googlegroups.com
1017copyright: 2018 Servant Contributors
11−category: Web, Servant, Pipes
1218build-type: Simple
13−cabal-version: >=1.10
14−bug-reports: http://github.com/haskell-servant/servant-pipes/issues
1519tested-with:
1620 GHC ==8.0.2
1721 || ==8.2.2
1822 || ==8.4.4
1923 || ==8.6.2
2024
25+extra-source-files:
26+ CHANGELOG.md
27+
2128source-repository head
2229 type: git
2330 location: http://github.com/haskell-servant/servant-pipes.git
servant-pipes/src/Servant/Pipes.hs+1−3
@@ -6,9 +6,7 @@
66{-# LANGUAGE ScopedTypeVariables #-}
77{-# LANGUAGE UndecidableInstances #-}
88{-# 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.
1210module Servant.Pipes (
1311 PipesToSourceIO (..),
1412 ) where
servant-server/CHANGELOG.md+50
@@ -1,6 +1,56 @@
11[The latest version of this document is on GitHub.](https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md)
22[Changelog for `servant` package contains significant entries for all core packages.](https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md)
33
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+
4540.14.1
555------
656
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
22
33All rights reserved.
44
servant-server/servant-server.cabal+13−9
@@ -1,6 +1,9 @@
1+cabal-version: >=1.10
12name: servant-server
23version: 0.15
4+
35synopsis: A family of combinators for defining webservices APIs and serving them
6+category: Servant, Web
47description:
58 A family of combinators for defining webservices APIs and serving them
69 .
@@ -11,21 +14,21 @@ description:
1114 a webserver that serves this API, using this package.
1215 .
1316 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
17+
1418homepage: 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
1620license: BSD3
1721license-file: LICENSE
1822author: Servant Contributors
1923maintainer: haskell-servant-maintainers@googlegroups.com
20−copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
21−category: Servant, Web
24+copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
2225build-type: Custom
23−cabal-version: >=1.10
2426tested-with:
25− GHC==8.0.2
26− GHC==8.2.2
27− GHC==8.4.4
28− GHC==8.6.2
27+ GHC ==8.0.2
28+ || ==8.2.2
29+ || ==8.4.4
30+ || ==8.6.2
31+
2932extra-source-files:
3033 CHANGELOG.md
3134 README.md
@@ -71,8 +74,9 @@ library
7174 , filepath >= 1.4.1.1 && < 1.5
7275
7376 -- Servant dependencies
77+ -- strict dependency as we re-export 'servant' things.
7478 build-depends:
75− servant >= 0.15 && < 0.16
79+ servant >= 0.15 && < 0.15.1
7680
7781 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
7882 -- 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 @@
1111 [#1077](https://github.com/haskell-servant/servant/pull/1077)
1212
1313 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),
1515 which replaces both `StreamGenerator` and `ResultStream` types.
1616
1717 New conversion type-classes are `ToSourceIO` and `FromSourceIO`
@@ -58,32 +58,45 @@
5858
5959 This change shouldn't affect you, if you don't use streaming endpoints.
6060
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+
6170- Drop support for GHC older than 8.0
6271 [#1008](https://github.com/haskell-servant/servant/pull/1008)
6372 [#1009](https://github.com/haskell-servant/servant/pull/1009)
6473
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.
6675 This API type is used to verify that libraries implement all core combinators.
6776 Now we won't change this type between major versions.
6877 (This has been true for some time already).
6978 [#1070](https://github.com/haskell-servant/servant/pull/1070)
7079
71−- Remove `Servant.Utils.Enter` module
80+- *servant* Remove `Servant.Utils.Enter` module
7281 (deprecated in `servant-0.12` in favour of `hoistServer`)
7382 [#996](https://github.com/haskell-servant/servant/pull/996)
7483
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+
7588### Other changes
7689
7790- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
7891 [#1076](https://github.com/haskell-servant/servant/pull/1076)
7992
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+
8097- *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a`
8198 [#1064](https://github.com/haskell-servant/servant/pull/1064)
8299
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−
87100- *servant-server* Add `MonadMask Handler`
88101 [#1068](https://github.com/haskell-servant/servant/pull/1068)
89102
@@ -102,7 +115,7 @@
102115- *servant-client-core* Add `aeson` and `Lift BaseUrl` instances
103116 [#1037](https://github.com/haskell-servant/servant/pull/1037)
104117
105−- Add `ToSourceIO (NonEmpty a)` instance
118+- *servant* Add `ToSourceIO (NonEmpty a)` instance
106119 [#988](https://github.com/haskell-servant/servant/pull/988)
107120
108121- 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
22
33All rights reserved.
44
servant/servant.cabal+4−4
@@ -21,10 +21,10 @@ copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant
2121build-type: Custom
2222
2323tested-with:
24− GHC==8.0.2
25− GHC==8.2.2
26− GHC==8.4.4
27− GHC==8.6.2
24+ GHC ==8.0.2
25+ || ==8.2.2
26+ || ==8.4.4
27+ || ==8.6.2
2828
2929extra-source-files:
3030 CHANGELOG.md