Form minor changes, setMessage not polymorphic

This commit is contained in:
Michael Snoyman 2010-08-15 11:23:46 +03:00
parent 476926cb68
commit 2cefc3c2a7
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ module Yesod.Form
( -- * Data types ( -- * Data types
GForm GForm
, FormResult (..) , FormResult (..)
, Enctype , Enctype (..)
, FormFieldSettings (..) , FormFieldSettings (..)
-- * Type synonyms -- * Type synonyms
, Form , Form
@ -25,10 +25,11 @@ module Yesod.Form
, fieldsToTable , fieldsToTable
, fieldsToPlain , fieldsToPlain
, checkForm , checkForm
-- * Fields
, module Yesod.Form.Fields
-- * Template Haskell -- * Template Haskell
, mkToForm , mkToForm
-- * Re-exports
, module Yesod.Form.Fields
, module Yesod.Form.Class
) where ) where
import Yesod.Form.Core import Yesod.Form.Core

View File

@ -332,8 +332,8 @@ msgKey = "_MSG"
-- instead, it will only appear in the next request. -- instead, it will only appear in the next request.
-- --
-- See 'getMessage'. -- See 'getMessage'.
setMessage :: ToHtml h => h -> GHandler sub master () setMessage :: Html -> GHandler sub master ()
setMessage = setSession msgKey . L.toString . renderHtml . toHtml setMessage = setSession msgKey . L.toString . renderHtml
-- | Gets the message in the user's session, if available, and then clears the -- | Gets the message in the user's session, if available, and then clears the
-- variable. -- variable.

View File

@ -17,7 +17,6 @@ import Yesod.Content
import Yesod.Handler import Yesod.Handler
import Text.Hamlet import Text.Hamlet
import Yesod.Form import Yesod.Form
import Yesod.Form.Class
import Data.Monoid (mempty) import Data.Monoid (mempty)
import Language.Haskell.TH.Syntax import Language.Haskell.TH.Syntax