packages feed

dsc 0.1.3 → 0.2.0

raw patch · 2 files changed

+2/−5 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

dsc.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack  name:                dsc-version:             0.1.3+version:             0.2.0 synopsis:            Helper functions for setting up Double Submit Cookie defense for forms description:         See README at <https://github.com/qoelet/dsc#readme> homepage:            https://github.com/qoelet/dsc#readme
src/Web/Csrf.hs view
@@ -50,10 +50,7 @@  mkCsrf :: ByteString -> ByteString -> ByteString -> Csrf mkCsrf keyBS c t-  = runCheck key (Csrf (MkToken c) (MkToken t) Nothing)-  where-    key :: ByteString-    key = decodeLenient keyBS+  = runCheck keyBS (Csrf (MkToken c) (MkToken t) Nothing)  unMkToken :: Token -> ByteString unMkToken (MkToken x) = x