restful-snap 0.1.1.1 → 0.2
raw patch · 3 files changed
+28/−20 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Snap.Restful.TH: decCons :: Dec -> Q [Con]
- Snap.Restful.TH: nameCons :: Name -> Q [Con]
- Snap.Restful.TH: typeCons :: Type -> Q [Con]
Files
- restful-snap.cabal +1/−1
- src/Snap/Restful.hs +22/−18
- src/Snap/Restful/TH.hs +5/−1
restful-snap.cabal view
@@ -1,5 +1,5 @@ name: restful-snap-version: 0.1.1.1+version: 0.2 description: A convention-based RESTful routing mechanism for snap license: BSD3 license-file: LICENSE
src/Snap/Restful.hs view
@@ -8,22 +8,35 @@ {-# LANGUAGE TypeSynonymInstances #-} module Snap.Restful- ( CRUD (..)+ (++ -- * Core API+ addResource+ , addResourceRelative+ , initRest++ -- * Splice functions+ , resourceSplices+ , itemSplices+ , resourceCSplices+ , itemCSplices+ , unitLens+ , resourceRouter+ , resourceRoutes++ -- * Types+ , CRUD (..) , Resource (..) , DBId (..)++ -- * Generating forms and splices , HasFormlet (..) , PrimSplice (..) , iPrimText , iPrimShow , cPrimShow - , addResource- , addResourceRelative- , initRest- , unitLens- , resourceRouter- , resourceRoutes-+ -- * Functions for generating paths , rootPath , indexPath , createPath@@ -33,23 +46,14 @@ , updatePath , destroyPath , itemActionPath- , templatePath - , resourceSplices- , itemSplices- , resourceCSplices- , itemCSplices-+ -- * Misc helpers , redirToItem- , prefixSplices- , relativeRedirect- , setFormAction , getFormAction- , simpleDateFormlet ) where
src/Snap/Restful/TH.hs view
@@ -9,7 +9,11 @@ {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeSynonymInstances #-} -module Snap.Restful.TH where+module Snap.Restful.TH+ ( deriveHasFormlet+ , iSplices+ , cSplices+ ) where ------------------------------------------------------------------------------ import Control.Applicative