apiary 2.0.0 → 2.0.1
raw patch · 4 files changed
+9/−1 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Control.Monad.Apiary.Action: getReqBodyJSON :: (MonadIO m, FromJSON a) => ActionT exts prms m (Maybe a)
Files
- CHANGELOG.md +4/−0
- apiary.cabal +1/−1
- src/Control/Monad/Apiary/Action.hs +1/−0
- src/Data/Apiary/Param.hs +3/−0
CHANGELOG.md view
@@ -1,3 +1,7 @@+# 2.0.1+* document Data.Param.File+* expose Control.Monad.Apiary.Action.getReqBodyJSON+ # 2.0.0 * add methods to get application from Apiary monad stack. * add Control.Monad.Apiary.Action.application to mount a wai application at certain route.
apiary.cabal view
@@ -1,5 +1,5 @@ name: apiary-version: 2.0.0+version: 2.0.1 synopsis: Simple and type safe web framework that generate web API documentation. description: Simple and type safe web framework that can be automatically generate API documentation.
src/Control/Monad/Apiary/Action.hs view
@@ -50,6 +50,7 @@ , ActionReqBody(..), getReqBody , getReqBodyParams , getReqBodyFiles+ , getReqBodyJSON -- ** setter , devFile , devFile'
src/Data/Apiary/Param.hs view
@@ -102,6 +102,9 @@ fileParameter :: S.ByteString , fileName :: S.ByteString , fileContentType :: S.ByteString+ -- | check out 'Control.Monad.Apiary.uploadFilePath'. since 2.0.0+ --+ -- a Left value store file in memmory, a Right value contain 'FilePath' of uploaded file. , fileContent :: Either L.ByteString FilePath } deriving (Show, Eq, Typeable)