[web-devel] Interpolating url does not work

vagif.verdi at gmail.com vagif.verdi at gmail.com
Sun Mar 20 03:26:27 CET 2011


I have 2 handles defined in a separate module. Both handles are in the same 
module.
When i interpolate one into the template of the other i get an error "Not in 
scope".

But both handles work ok, If i do not interpolate, i can hit manually both of 
them.


Handle denied as 
getFormR :: Int -> Handler RepHtml

I interpolate it like this:

<a href=@{FormR 11}>

and get error: Not in scope: data constructor `FormR'

Most likely i am missing something obvious. But cannot figure it out.


Regards,
Vagif Verdi



More information about the web-devel mailing list