Fix a bug in IsString instance of FieldSettings

This commit is contained in:
Michael Snoyman 2012-03-28 07:41:49 +02:00
parent 4cc933b21a
commit 9b9a3ad605
2 changed files with 2 additions and 3 deletions

View File

@ -102,7 +102,7 @@ data FieldSettings master = FieldSettings
, fsAttrs :: [(Text, Text)]
}
instance (a ~ Text) => IsString (FieldSettings a) where
instance IsString (FieldSettings a) where
fromString s = FieldSettings (fromString s) Nothing Nothing Nothing []
data FieldView sub master = FieldView

View File

@ -39,8 +39,7 @@ data HelloForms = HelloForms
instance RenderMessage HelloForms FormMessage where
renderMessage _ _ = defaultFormMessage
instance Yesod HelloForms where
approot _ = ""
instance Yesod HelloForms
fixType :: Handler a -> Handler a
fixType = id