packages feed

rest-core 0.36.0.3 → 0.36.0.4

raw patch · 3 files changed

+8/−5 lines, 3 filesdep −eitherPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: either

API changes (from Hackage documentation)

- Rest.Dictionary.Types: data Dict h_abPU p_abPV i_abPW o_abPX e_abPY
+ Rest.Dictionary.Types: data Dict h_abdj p_abdk i_abdl o_abdm e_abdn

Files

CHANGELOG.md view
@@ -1,5 +1,10 @@ # Changelog +#### 0.36.0.4++* Drop (internal) dependency on either, this removes 20(!) transitive+  dependecies.+ #### 0.36.0.3  * Allow `either 4.4.*`
rest-core.cabal view
@@ -1,5 +1,5 @@ name:                rest-core-version:             0.36.0.3+version:             0.36.0.4 description:         Rest API library. synopsis:            Rest API library. maintainer:          code@silk.co@@ -44,7 +44,6 @@     , aeson-utils >= 0.2 && < 0.4     , bytestring >= 0.9 && < 0.11     , case-insensitive >= 1.2 && < 1.3-    , either >= 3.4 && < 4.5     , errors >= 1.4 && < 2.1     , fclabels == 2.0.*     , hxt >= 9.2 && < 9.4
src/Rest/Driver/Routing.hs view
@@ -29,7 +29,6 @@ import Control.Monad.Identity import Control.Monad.Reader import Control.Monad.State (MonadState, StateT, evalStateT)-import Control.Monad.Trans.Either import Control.Monad.Trans.Except import Control.Monad.Trans.Maybe import Data.List.Split@@ -65,7 +64,7 @@ apiError = throwError  newtype Router a =-  Router { unRouter :: ReaderT Method (StateT UriParts (EitherT Reason_ Identity)) a }+  Router { unRouter :: ReaderT Method (StateT UriParts (ExceptT Reason_ Identity)) a }   deriving ( Functor            , Applicative            , Monad@@ -76,7 +75,7 @@  runRouter :: Method -> UriParts -> Router (RunnableHandler m) -> Either Reason_ (RunnableHandler m) runRouter method uri = runIdentity-                     . runEitherT+                     . runExceptT                      . flip evalStateT uri                      . flip runReaderT method                      . unRouter