[web-devel] Yesod. Problem with compile

Michael Snoyman michael at snoyman.com
Sun Jan 23 16:21:15 CET 2011


Did you turn on quasiquotes?

2011/1/23 Антон Чешков <acheshkov at gmail.com>:
> Hello Michael. I have the little problem
> i can not compile this:
> registrationWidget :: String -> Widget ()
> registrationWidget s = do
>     addJulius [$julius|alert("This is Javascript");|]
> I got:
>  Handler/Registration.hs:10:50: parse error on input `;'
> I have the same problem when try to add hamlet via $addHamlet.
> Do i forget import some stuff module ?
> Thanks.
> --
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Phone: +7 931 511 47 37
> Skype: cheshkov_anton
>



More information about the web-devel mailing list