packages feed

api-builder 0.2.0.0 → 0.2.0.1

raw patch · 3 files changed

+16/−11 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

api-builder.cabal view
@@ -1,5 +1,5 @@ name: api-builder-version: 0.2.0.0+version: 0.2.0.1 synopsis: Library for easily building REST API wrappers in Haskell license: BSD3 author: Fraser Murray
src/Network/API/Builder.hs view
@@ -1,11 +1,15 @@--- | Exports a bunch of stuff. Check 'Network.API.Builder.API', 'Network.API.Builder.Builder',---   'Network.API.Builder.Decoding', 'Network.API.Builder.Error', and 'Network.API.Builder.Routes'.+-- | Entirely re-exports. module Network.API.Builder-  ( module Exports ) where+  ( module Network.API.Builder.API+  , module Network.API.Builder.Builder+  , module Network.API.Builder.Decoding+  , module Network.API.Builder.Error+  , module Network.API.Builder.Query+  , module Network.API.Builder.Routes ) where -import Network.API.Builder.API as Exports-import Network.API.Builder.Builder as Exports-import Network.API.Builder.Decoding as Exports-import Network.API.Builder.Error as Exports-import Network.API.Builder.Query as Exports-import Network.API.Builder.Routes as Exports+import Network.API.Builder.API+import Network.API.Builder.Builder+import Network.API.Builder.Decoding+import Network.API.Builder.Error+import Network.API.Builder.Query+import Network.API.Builder.Routes
src/Network/API/Builder/API.hs view
@@ -9,8 +9,8 @@   , routeResponse   , routeRequest   -- ** Lifting-  , liftManager   , liftEither+  , liftManager   , liftBuilder   , liftState   -- ** Changing the @Builder@ within the API@@ -50,6 +50,7 @@ liftEither :: Monad m => EitherT (APIError e) (ReaderT Manager (StateT Builder (StateT s m))) a -> APIT s e m a liftEither = id +-- | Lifts an action that works on a @Manager@ to one that works on an @API@. liftManager :: Monad m => ReaderT Manager (StateT Builder (StateT s m)) a -> APIT s e m a liftManager = lift