[web-devel] Interpolating url does not work
vagif.verdi at gmail.com
vagif.verdi at gmail.com
Sun Mar 20 05:03:31 CET 2011
Ah, that was it. I was not importing from main module MainRoute.
Thx, it works now.
On Saturday, March 19, 2011 08:14:19 PM you wrote:
> 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
More information about the web-devel
mailing list