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)]
|
, fsAttrs :: [(Text, Text)]
|
||||||
}
|
}
|
||||||
|
|
||||||
instance (a ~ Text) => IsString (FieldSettings a) where
|
instance IsString (FieldSettings a) where
|
||||||
fromString s = FieldSettings (fromString s) Nothing Nothing Nothing []
|
fromString s = FieldSettings (fromString s) Nothing Nothing Nothing []
|
||||||
|
|
||||||
data FieldView sub master = FieldView
|
data FieldView sub master = FieldView
|
||||||
|
|||||||
@ -39,8 +39,7 @@ data HelloForms = HelloForms
|
|||||||
instance RenderMessage HelloForms FormMessage where
|
instance RenderMessage HelloForms FormMessage where
|
||||||
renderMessage _ _ = defaultFormMessage
|
renderMessage _ _ = defaultFormMessage
|
||||||
|
|
||||||
instance Yesod HelloForms where
|
instance Yesod HelloForms
|
||||||
approot _ = ""
|
|
||||||
|
|
||||||
fixType :: Handler a -> Handler a
|
fixType :: Handler a -> Handler a
|
||||||
fixType = id
|
fixType = id
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user