Added Ord instance for Textarea
This commit is contained in:
parent
3a21986165
commit
4929ece70c
@ -167,7 +167,7 @@ $# FIXME: There was a class="html" attribute, for what purpose?
|
|||||||
-- | A newtype wrapper around a 'Text' that converts newlines to HTML
|
-- | A newtype wrapper around a 'Text' that converts newlines to HTML
|
||||||
-- br-tags.
|
-- br-tags.
|
||||||
newtype Textarea = Textarea { unTextarea :: Text }
|
newtype Textarea = Textarea { unTextarea :: Text }
|
||||||
deriving (Show, Read, Eq, PersistField)
|
deriving (Show, Read, Eq, PersistField, Ord)
|
||||||
instance ToHtml Textarea where
|
instance ToHtml Textarea where
|
||||||
toHtml =
|
toHtml =
|
||||||
unsafeByteString
|
unsafeByteString
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user