
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: and get error: Not in scope: data constructor `FormR' Most likely i am missing something obvious. But cannot figure it out. Regards, Vagif Verdi

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,
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:
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

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,
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:
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
participants (2)
-
Greg Weber
-
vagif.verdi@gmail.com