Fix a bug in IsString instance of FieldSettings
This commit is contained in:
parent
4cc933b21a
commit
9b9a3ad605
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user