Error following through with Form section
Closed this issue · 3 comments
chrissound commented
Not in scope: type constructor or class ‘Widget’
http://www.yesodweb.com/book/forms
personForm :: Html -> MForm Handler (FormResult Person, Widget)
Is this possibly outdated?
psibi commented
I think it's a type synonym of WidgetT
: type Widget = WidgetT App IO ()
...
snoyberg commented
Correct, and it's automatically generated by the mkYesod call. The example
works on my machine.
…On Sun, Apr 9, 2017 at 3:08 AM, Sibi ***@***.***> wrote:
I think it's a type synonym of WidgetT: type Widget = WidgetT App IO ()
...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBB_GVcakVxMWj2bK6_QJU7Ux4ANmRks5ruCFrgaJpZM4M32_s>
.
chrissound commented
Ah, makes sense. Thank you