Spock 0.4.0.0 → 0.4.0.1
raw patch · 2 files changed
+3/−8 lines, 2 files
Files
- Spock.cabal +1/−1
- Web/Spock/Monad.hs +2/−7
Spock.cabal view
@@ -1,5 +1,5 @@ name: Spock-version: 0.4.0.0+version: 0.4.0.1 synopsis: Another Haskell web toolkit based on scotty description: This toolbox provides everything you need to get a quick start into web hacking with haskell: sessions, database helper, authentication and the power of scotty Homepage: https://github.com/agrafix/Spock
Web/Spock/Monad.hs view
@@ -36,7 +36,8 @@ getSessMgr = webM $ asks web_sessionMgr instance Parsable BSL.ByteString where- parseParam = Right . BSL.fromStrict . T.encodeUtf8 . TL.toStrict+ parseParam =+ Right . BSL.fromStrict . T.encodeUtf8 . TL.toStrict instance Parsable UTCTime where parseParam p =@@ -45,9 +46,3 @@ Left $ TL.pack $ "Can't parse param (`" ++ show p ++ "`) as UTCTime!" Just x -> Right x--instance Integral a => Parsable a where- parseParam p =- let eInt :: Either TL.Text Integer- eInt = readEither p- in fmap fromInteger eInt