packages feed

yesod-markdown 0.3.4 → 0.4.0

raw patch · 2 files changed

+9/−9 lines, 2 filesdep ~hamletdep ~persistentdep ~yesod-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hamlet, persistent, yesod-core, yesod-form

API changes (from Hackage documentation)

Files

Yesod/Markdown.hs view
@@ -34,7 +34,7 @@ import Yesod.Form (ToField(..), areq, aopt) import Yesod.Core (RenderMessage, SomeMessage(..)) import Yesod.Form.Types-import Yesod.Widget (addHamlet)+import Yesod.Widget (toWidget) import Text.Hamlet (hamlet, Html) import Database.Persist (PersistField) @@ -60,9 +60,9 @@ markdownField :: RenderMessage master FormMessage => Field sub master Markdown markdownField = Field     { fieldParse = blank $ Right . Markdown . unlines . lines' . T.unpack-    , fieldView  = \theId name theClass val _isReq -> addHamlet+    , fieldView  = \theId name attrs val _isReq -> toWidget         [hamlet|-<textarea id="#{theId}" name="#{name}" :not (null theClass):class="#{T.intercalate " " theClass}">#{either id unMarkdown val}+<textarea id="#{theId}" name="#{name}" *{attrs}>#{either id unMarkdown val} |]      } 
yesod-markdown.cabal view
@@ -1,5 +1,5 @@ name:                yesod-markdown-version:             0.3.4+version:             0.4.0 synopsis:            Tools for using markdown in a yesod application description:         A subset of pandoc functionality useful for markdown processing in yesod applications homepage:            http://github.com/pbrisbin/yesod-markdown@@ -20,13 +20,13 @@                , blaze-html      >= 0.4   && < 0.5                , xss-sanitize    >= 0.3.1 && < 0.4                , directory-               , yesod-core      >= 0.10  && < 0.11-               , yesod-form      >= 0.4   && < 0.5-               , hamlet-               , persistent+               , yesod-core      >= 1.0   && < 1.1+               , yesod-form      >= 1.0   && < 1.1+               , hamlet          >= 1.0   && < 1.1+               , persistent      >= 0.9   && < 0.10    ghc-options: -Wall-  + source-repository head   type:         git   location:     git://github.com/pbrisbin/yesod-markdown.git