rest-core 0.33.1 → 0.33.1.1
raw patch · 4 files changed
+13/−2 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Rest.Container: defaultE :: Errors ()
- Rest.Dictionary.Types: data Dict h_a60I p_a60J i_a60K o_a60L e_a60M
+ Rest.Dictionary.Types: data Dict h_ac7c p_ac7d i_ac7e o_ac7f e_ac7g
Files
- CHANGELOG.md +6/−0
- rest-core.cabal +1/−1
- src/Rest/Container.hs +4/−0
- src/Rest/Driver/Routing.hs +2/−1
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +#### 0.33.1.1++* Declare correct error return type for derived multi handlers. These+ were declared as `Reason (Reason e)`, now they are `Reason ()`. This+ generated confusing documentation.+ ### 0.33.1 * Move `Range` from `Rest.Handler` into `rest-types`. Still re-exported.
rest-core.cabal view
@@ -1,5 +1,5 @@ name: rest-core-version: 0.33.1+version: 0.33.1.1 description: Rest API library. synopsis: Rest API library. maintainer: code@silk.co
src/Rest/Container.hs view
@@ -15,6 +15,7 @@ , mappingO , statusO , reasonE+ , defaultE ) where import Data.Maybe@@ -105,3 +106,6 @@ reasonDictE :: Error a -> Error (Reason a) reasonDictE XmlE = XmlE reasonDictE JsonE = JsonE++defaultE :: Errors ()+defaultE = Dicts [XmlE, JsonE]
src/Rest/Driver/Routing.hs view
@@ -311,7 +311,8 @@ newErrDict = L.modify errors reasonE dict mNewDict = L.traverse inputs mappingI <=< L.traverse outputs (mappingO <=< statusO (L.get errors newErrDict))- $ newErrDict+ . L.set errors defaultE+ $ dict newAct (Env hs ps vs) = do bs <- lift $ forM (StringHashMap.toList vs) $ \(k, v) -> runErrorT $ do i <- parseIdent sBy k