rest-core 0.33 → 0.33.1
raw patch · 3 files changed
+15/−8 lines, 3 filesdep ~rest-types
Dependency ranges changed: rest-types
Files
- CHANGELOG.md +4/−0
- rest-core.cabal +2/−2
- src/Rest/Handler.hs +9/−6
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +### 0.33.1++* Move `Range` from `Rest.Handler` into `rest-types`. Still re-exported.+ ## 0.33 * Added a `Rest.Types.Error.ToResponseCode` constraint to `jsonE`, `xmlE`, and `xmlJsonE`.
rest-core.cabal view
@@ -1,5 +1,5 @@ name: rest-core-version: 0.33+version: 0.33.1 description: Rest API library. synopsis: Rest API library. maintainer: code@silk.co@@ -53,7 +53,7 @@ , multipart >= 0.1.1 && < 0.2 , random >= 1.0 && < 1.2 , rest-stringmap == 0.2.*- , rest-types == 1.11.*+ , rest-types >= 1.11.1 && < 1.12 , safe >= 0.2 && < 0.4 , split >= 0.1 && < 0.3 , text >= 0.11 && < 1.3
src/Rest/Handler.hs view
@@ -1,4 +1,10 @@-{-# LANGUAGE GADTs, KindSignatures, TupleSections, DeriveDataTypeable, TypeFamilies #-}+{-# LANGUAGE+ DeriveDataTypeable+ , GADTs+ , KindSignatures+ , TupleSections+ , TypeFamilies+ #-} -- | Handlers for endpoints in a 'Resource'. module Rest.Handler ( -- * Single handlers.@@ -27,11 +33,12 @@ , secureHandler ) where -import Control.Arrow import Control.Applicative hiding (empty)+import Control.Arrow import Control.Monad.Error import Control.Monad.Identity import Control.Monad.Reader+import Rest.Types.Range import Safe import Rest.Dictionary@@ -90,10 +97,6 @@ secureHandler :: Handler m -> Handler m secureHandler h = h { secure = True }---- | Data type for representing the requested range in list handlers.--data Range = Range { offset :: Int, count :: Int } -- | Smart constructor for creating a list handler. -- Restricts the type of the 'Input' dictionary to 'None'