scotty-format 0.1.0.2 → 0.1.1.0
raw patch · 2 files changed
+6/−5 lines, 2 files
Files
scotty-format.cabal view
@@ -1,5 +1,5 @@ name: scotty-format-version: 0.1.0.2+version: 0.1.1.0 synopsis: Response format helper for the Scotty web framework. description: scotty-format is a helper for the Scotty web framework that helps you defining@@ -20,7 +20,7 @@ exposed-modules: Web.Scotty.Format.Trans ghc-options: -Wall build-depends:- base >= 4.8.2 && < 4.9,+ base >= 4.8.2 && < 4.10, http-media >= 0.6.4 && < 0.7, http-types >= 0.9.1 && < 0.10, scotty >= 0.11 && < 0.12,
src/Web/Scotty/Format/Trans.hs view
@@ -5,7 +5,8 @@ formatHtml, formatText, formatJson,- format+ format,+ ResponseFormat, ) where import Control.Monad (liftM, ap)@@ -51,9 +52,9 @@ format mediaType action = RF [(mediaType, action)] () --- Private- data ResponseFormat e m a = RF [(MediaType, ActionT e m ())] a++-- Private instance Monad (ResponseFormat e m) where return = RF []