packages feed

rest-core 0.33.1.1 → 0.33.1.2

raw patch · 5 files changed

+11/−7 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +#### 0.33.1.2++* Typo fixes in documentation.+ #### 0.33.1.1  * Declare correct error return type for derived multi handlers. These
rest-core.cabal view
@@ -1,5 +1,5 @@ name:                rest-core-version:             0.33.1.1+version:             0.33.1.2 description:         Rest API library. synopsis:            Rest API library. maintainer:          code@silk.co
src/Rest/Dictionary/Types.hs view
@@ -121,7 +121,7 @@                                                   . showsPrec 10 q                                                   ) --- | The explicitly dictionary `Input` describes how to translate the request+-- | The explicit dictionary `Input` describes how to translate the request -- body into some Haskell value. We currently use a constructor for every -- combination of input type to output type. For example, we can use XML input -- in multiple ways, parsed, as plain/text or as raw bytes, depending on the@@ -140,7 +140,7 @@ deriving instance Eq   (Input i) deriving instance Ord  (Input i) --- | The explicitly dictionary `Output` describes how to translate some Haskell+-- | The explicit dictionary `Output` describes how to translate some Haskell -- value to a response body. We currently use a constructor for every -- combination of input type to output type. @@ -156,7 +156,7 @@ deriving instance Eq   (Output o) deriving instance Ord  (Output o) --- | The explicitly dictionary `Error` describes how to translate some Haskell+-- | The explicit dictionary `Error` describes how to translate some Haskell -- error value to a response body.  data Error e where
src/Rest/Handler.hs view
@@ -170,7 +170,7 @@ mkConstHandler d a = mkHandler d (const a)  -- | Create a handler for a single resource. Take body information and--- the resource identifier as input. The monad @m@ should be a+-- the resource identifier as input. The monad @m@ must be a -- 'Reader'-like type containing the idenfier.  mkIdHandler :: MonadReader id m => Modifier h p i o e -> (i -> id -> ErrorT (Reason e) m o) -> Handler m
src/Rest/Resource.hs view
@@ -10,7 +10,7 @@   , NamedFieldPuns   #-} -- | A 'Resource' type for representing a REST resource, as well as--- smart constructors for empty resources which can them be filled in+-- smart constructors for empty resources which can then be filled in -- using record updates. module Rest.Resource where @@ -85,7 +85,7 @@ mkResourceReader = mkResourceReaderWith id  -- | Make a resource that provides the single resource identifier to--- its subresources, by giving a convertion function to a 'ReaderT'.+-- its subresources, by giving a conversion function to a 'ReaderT'. -- If @s@ is a newtype around 'ReaderT', for example, the function -- should unwrap the newtype.