Add ToJSON and FromJSON for Textarea (fixes #738)

This commit is contained in:
Michael Snoyman 2014-05-13 09:08:44 +03:00
parent e35836bbc1
commit 96e59947eb
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ $newline never
-- | 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

View File

@ -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>