Auto-wrap SomeMessage on fieldSettingsLabel

This commit is contained in:
Michael Snoyman 2012-04-17 14:22:46 +03:00
parent ce1f691f43
commit a3fdf21121
2 changed files with 3 additions and 3 deletions

View File

@ -346,8 +346,8 @@ customErrorMessage msg field = field { fieldParse = \ts -> fmap (either
(const $ Left msg) Right) $ fieldParse field ts }
-- | Generate a 'FieldSettings' from the given label.
fieldSettingsLabel :: SomeMessage master -> FieldSettings master
fieldSettingsLabel msg = FieldSettings msg Nothing Nothing Nothing []
fieldSettingsLabel :: RenderMessage master msg => msg -> FieldSettings master
fieldSettingsLabel msg = FieldSettings (SomeMessage msg) Nothing Nothing Nothing []
-- | Generate an 'AForm' that gets its value from the given action.
aformM :: GHandler sub master a -> AForm sub master a

View File

@ -1,5 +1,5 @@
name: yesod-form
version: 1.0.0.1
version: 1.0.0.2
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>