yesod-comments-0.8.3: A generic comments interface for a Yesod application

Portabilityunportable
Stabilityunstable
Maintainerpbrisbin@gmail.com
Safe HaskellNone

Yesod.Comments.Form

Description

 

Synopsis

Documentation

runForm :: YesodComments m => ThreadId -> Maybe UserDetails -> GWidget s m ()Source

Run the form and stores the comment on successful submission

runFormWith :: YesodComments m => Maybe Comment -> (CommentForm -> GHandler s m ()) -> ThreadId -> Maybe UserDetails -> GWidget s m ()Source

Both handle form submission and present form HTML. On FormSuccess, run the given function on the submitted value.