Added Ord instance for Textarea

This commit is contained in:
Michael 2012-05-31 07:24:15 +03:00
parent 3a21986165
commit 4929ece70c

View File

@ -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
-- br-tags.
newtype Textarea = Textarea { unTextarea :: Text }
deriving (Show, Read, Eq, PersistField)
deriving (Show, Read, Eq, PersistField, Ord)
instance ToHtml Textarea where
toHtml =
unsafeByteString