Skip to content

Commit e4fa64f

Browse files
committed
Bump rest-client, rest-core, rest-example, rest-gen, rest-happstack, rest-snap, rest-types, rest-wai
1 parent 7530373 commit e4fa64f

17 files changed

Lines changed: 106 additions & 34 deletions

File tree

rest-client/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
#### 0.5.0.0
4+
5+
* Add `ApiStateC ExceptT` instance
6+
7+
* Add `MonadCatch ApiT` instance.
8+
9+
* Remove dependency on `exception-transformers` and drop `MonadException` instances. Use `MonadCatch` and `MonadThrow` instead.
10+
11+
312
#### 0.4.0.5
413

514
* Allow `aeson-utils 0.3.*`

rest-client/rest-client.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rest-client
2-
version: 0.4.0.5
2+
version: 0.5.0.0
33
description: Utility library for use in generated API client libraries.
44
synopsis: Utility library for use in generated API client libraries.
55
maintainer: code@silk.co
@@ -38,7 +38,7 @@ Library
3838
, mtl >= 2.0 && < 2.3
3939
, primitive == 0.5.*
4040
, resourcet >= 1.1.4 && < 1.2
41-
, rest-types >= 1.11 && < 1.13
41+
, rest-types == 1.13.*
4242
, tostring == 0.2.*
4343
, transformers >= 0.3 && < 0.5
4444
, transformers-base >= 0.4.4 && < 0.5

rest-core/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## 0.35
4+
5+
* Change input/output dictionaries to indicate separately if there are
6+
dictionaries, and for what type. This is a breaking change. The most
7+
likely problems are where `Reason ()` is explicitly used in handlers
8+
without error dictionaries. Simply replace these with `Reason_`.
9+
Additionally, all `some*` combinators are deprecated now. They are
10+
just the identity function and can be removed.
11+
12+
* The types of all dictionary combinators have changed, the Dicts
13+
type, the dicts smart constructor, empty, SomeError, Modifier, many
14+
internal (but exported) things in Rest.Driver.Perform, some types in
15+
Rest.Handler, and Void was moved.
16+
17+
* Switched all usages of `ErrorT` to `ExceptT`. To stay backwards
18+
compatible with older versions of `transformers` and `mtl` you can
19+
use the `transformers-compat` and `mtl-compat` packages. To update
20+
your code: `s/ErrorT/ExceptT` and
21+
`s/Control.Monad.Error/Control.Monad.Except/`.
22+
23+
* Add `>|<` to `Rest.Error`. It combines two `ExceptT` computations
24+
yielding the last error if both fail. This is a replacement for
25+
using `<|>` with `ErrorT` since the `Alternative ExceptT` instance
26+
needs a `Monoid` instance for the error.
27+
28+
* Fix typos in haddock for `Param` dictionary.
29+
30+
* Switch to explicit export lists where missing.
31+
332
#### 0.34.0.3
433

534
* Allow `aeson-utils 0.3.*`

rest-core/rest-core.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rest-core
2-
version: 0.34.0.3
2+
version: 0.35
33
description: Rest API library.
44
synopsis: Rest API library.
55
maintainer: code@silk.co
@@ -14,8 +14,8 @@ extra-source-files:
1414
LICENSE
1515

1616
source-repository head
17-
Type: Git
18-
Location: https://github.com/silkapp/rest.git
17+
type: git
18+
location: https://github.com/silkapp/rest.git
1919

2020
library
2121
ghc-options: -Wall
@@ -55,7 +55,7 @@ library
5555
, multipart >= 0.1.1 && < 0.2
5656
, random >= 1.0 && < 1.2
5757
, rest-stringmap == 0.2.*
58-
, rest-types == 1.12.*
58+
, rest-types == 1.13.*
5959
, safe >= 0.2 && < 0.4
6060
, semigroups == 0.16.*
6161
, split >= 0.1 && < 0.3

rest-example/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
#### 0.2.0.0
4+
5+
* Change to use `ExceptT` and bump rest dependencies
6+
37
#### 0.1.2.2
48

59
* Bump `rest-core`.

rest-example/client/restexample-client.cabal

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@ version: 0.1.1
33
cabal-version: >=1.8
44
build-type: Simple
55
license: AllRightsReserved
6-
6+
77
library
8-
build-depends: base ==4.*, rest-types ==1.12.*,
9-
rest-client ==0.4.*, text >=0.10 && <1.3, rest-example -any,
10-
rest-stringmap ==0.2.*
11-
exposed-modules: Restexample.Client.Post
12-
Restexample.Client.Post.Comment Restexample.Client.Test
13-
Restexample.Client.Test.FooBar Restexample.Client.Test.Import
14-
Restexample.Client.User
8+
build-depends:
9+
base ==4.*,
10+
rest-types ==1.13.*,
11+
rest-client ==0.5.*,
12+
text >=0.10 && <1.3,
13+
rest-example ==0.2.*,
14+
rest-stringmap ==0.2.*
15+
exposed-modules:
16+
Restexample.Client.Post
17+
Restexample.Client.Post.Comment
18+
Restexample.Client.Test
19+
Restexample.Client.Test.FooBar
20+
Restexample.Client.Test.Import
21+
Restexample.Client.User
1522
exposed: True
1623
buildable: True
1724
hs-source-dirs: src
18-
19-

rest-example/rest-example.cabal

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rest-example
2-
version: 0.1.2.2
2+
version: 0.2.0.0
33
synopsis: Example project for rest
44
homepage: http://www.github.com/silkapp/rest
55
license: BSD3
@@ -50,7 +50,7 @@ library
5050
, mtl >= 2.0 && < 2.3
5151
, regular == 0.3.*
5252
, regular-xmlpickler == 0.2.*
53-
, rest-core >= 0.33 && < 0.35
53+
, rest-core == 0.35.*
5454
, safe >= 0.2 && < 0.4
5555
, transformers >= 0.2 && < 0.5
5656
, transformers-compat == 0.4.*
@@ -94,7 +94,7 @@ executable rest-example-happstack
9494
base >= 4.6 && < 4.8
9595
, happstack-server >= 7.1 && < 7.5
9696
, mtl >= 2.0 && < 2.3
97-
, rest-core >= 0.33 && < 0.35
97+
, rest-core == 0.35.*
9898
, rest-example
9999
, rest-happstack == 0.2.*
100100
, transformers-compat == 0.4.*
@@ -111,7 +111,7 @@ executable rest-example-wai
111111
build-depends:
112112
base >= 4.6 && < 4.8
113113
, mtl >= 2.0 && < 2.3
114-
, rest-core >= 0.33 && < 0.35
114+
, rest-core == 0.35.*
115115
, rest-example
116116
, rest-wai == 0.1.*
117117
, wai >= 2.1 && < 3.1
@@ -130,7 +130,7 @@ executable rest-example-snap
130130
build-depends:
131131
base >= 4.6 && < 4.8
132132
, mtl >= 2.0 && < 2.3
133-
, rest-core >= 0.33 && < 0.35
133+
, rest-core == 0.35.*
134134
, rest-example
135135
, rest-snap == 0.1.*
136136
, snap-core == 0.9.*
@@ -149,9 +149,9 @@ executable rest-example-gen
149149
build-depends:
150150
base >= 4.6 && < 4.8
151151
, mtl >= 2.0 && < 2.3
152-
, rest-core >= 0.33 && < 0.35
152+
, rest-core == 0.35.*
153153
, rest-example
154-
, rest-gen >= 0.14 && < 0.17
154+
, rest-gen >= 0.14 && < 0.18
155155
, transformers-compat == 0.4.*
156156
else
157157
buildable: False

rest-gen/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
#### 0.17.0.0
4+
5+
* Docs: More exhaustive examples of JSON messages showing each possible node in the schema at least once.
6+
* Docs: Make example popup scrollable.
7+
38
#### 0.16.1.8
49

510
* Remove dependency on hslogger.

rest-gen/rest-gen.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rest-gen
2-
version: 0.16.1.8
2+
version: 0.17.0.0
33
description: Documentation and client generation from rest definition.
44
synopsis: Documentation and client generation from rest definition.
55
maintainer: code@silk.co
@@ -62,7 +62,7 @@ library
6262
, json-schema >= 0.6 && < 0.8
6363
, pretty >= 1.0 && < 1.2
6464
, process >= 1.0 && < 1.3
65-
, rest-core >= 0.31 && < 0.35
65+
, rest-core >= 0.31 && < 0.36
6666
, safe >= 0.2 && < 0.4
6767
, semigroups >= 0.5.0 && < 0.17
6868
, scientific >= 0.3.2 && < 0.4
@@ -83,7 +83,7 @@ test-suite rest-gen-tests
8383
, HUnit == 1.2.*
8484
, fclabels >= 1.0.4 && < 2.1
8585
, haskell-src-exts >= 1.15.0 && < 1.17
86-
, rest-core >= 0.31 && < 0.35
86+
, rest-core >= 0.31 && < 0.36
8787
, rest-gen
8888
, test-framework == 0.8.*
8989
, test-framework-hunit == 0.3.*

rest-happstack/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3+
#### 0.2.10.7
4+
5+
* Bump `rest-core` and `rest-gen` upper bounds.
6+
37
#### 0.2.10.6
48

5-
* Allow utf8-string 1.
9+
* Allow `utf8-string 1.0.*`.
610

711
#### 0.2.10.5
812

0 commit comments

Comments
 (0)