Spock 0.6.2.1 → 0.6.2.2
raw patch · 3 files changed
+3/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Web.Spock: class HasSpock m
+ Web.Spock: class HasSpock m where type family SpockConn m :: * type family SpockState m :: * type family SpockSession m :: *
Files
- Spock.cabal +1/−1
- src/Web/Spock.hs +1/−1
- src/Web/Spock/Types.hs +1/−1
Spock.cabal view
@@ -1,5 +1,5 @@ name: Spock-version: 0.6.2.1+version: 0.6.2.2 synopsis: Another Haskell web framework for rapid development description: This toolbox provides everything you need to get a quick start into web hacking with haskell: routing, middleware, json, blaze, sessions, cookies, database helper, csrf-protection, global state Homepage: https://github.com/agrafix/Spock
src/Web/Spock.hs view
@@ -22,7 +22,7 @@ -- * Database , PoolOrConn (..), ConnBuilder (..), PoolCfg (..) -- * Accessing Database and State- , HasSpock (runQuery, getState)+ , HasSpock (runQuery, getState), SpockConn, SpockState, SpockSession -- * Sessions , SessionCfg (..) , readSession, writeSession, modifySession, clearAllSessions
src/Web/Spock/Types.hs view
@@ -23,7 +23,7 @@ import qualified Data.HashMap.Strict as HM import qualified Data.Text as T --- | Insive the SpockM monad, you may define routes and middleware.+-- | Inside the SpockM monad, you may define routes and middleware. type SpockM conn sess st = SpockT (WebStateM conn sess st) -- | The SpockAction is the monad of all route-actions. You have access