[web-devel] Interpolating url does not work

Greg Weber greg at gregweber.info
Sun Mar 20 04:14:19 CET 2011


Are you exporting/importing your Routes?

application file (if your application is named main)
---

module Main
    ( Main (..)
    , MainRoute (..)

---

Handler/Root.hs
---
import Main

On Sat, Mar 19, 2011 at 7:26 PM, <vagif.verdi at gmail.com> wrote:

> 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
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110319/94f7c8b3/attachment.htm>


More information about the web-devel mailing list