yesod-form 1.3.8.3 → 1.3.9
raw patch · 3 files changed
+3/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Yesod.Form.Fields: instance FromJSON Textarea
+ Yesod.Form.Fields: instance ToJSON Textarea
Files
- Yesod/Form/Fields.hs +1/−1
- Yesod/Form/Functions.hs +1/−1
- yesod-form.cabal +1/−1
Yesod/Form/Fields.hs view
@@ -170,7 +170,7 @@ -- | A newtype wrapper around a 'Text' that converts newlines to HTML -- br-tags. newtype Textarea = Textarea { unTextarea :: Text }- deriving (Show, Read, Eq, PersistField, Ord)+ deriving (Show, Read, Eq, PersistField, Ord, ToJSON, FromJSON) instance PersistFieldSql Textarea where sqlType _ = SqlString instance ToHtml Textarea where
Yesod/Form/Functions.hs view
@@ -185,7 +185,7 @@ -> [Text] -> Maybe (Env, FileEnv) -> m (a, Enctype)-runFormGeneric form site langs env = evalRWST form (env, site, langs) (IntSingle 1)+runFormGeneric form site langs env = evalRWST form (env, site, langs) (IntSingle 0) -- | This function is used to both initially render a form and to later extract -- results from it. Note that, due to CSRF protection and a few other issues,
yesod-form.cabal view
@@ -1,5 +1,5 @@ name: yesod-form-version: 1.3.8.3+version: 1.3.9 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>