Are you exporting/importing your Routes?<div><br></div><div>application file (if your application is named main)</div><div>---</div><div><br><div><div>module Main</div><div>    ( Main (..)</div><div>    , MainRoute (..)</div>

<div><br></div><div>---</div><div><br></div><div>Handler/Root.hs</div><div>---</div><div>import Main</div><br><div class="gmail_quote">On Sat, Mar 19, 2011 at 7:26 PM,  <span dir="ltr">&lt;<a href="mailto:vagif.verdi@gmail.com">vagif.verdi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have 2 handles defined in a separate module. Both handles are in the same<br>
module.<br>
When i interpolate one into the template of the other i get an error &quot;Not in<br>
scope&quot;.<br>
<br>
But both handles work ok, If i do not interpolate, i can hit manually both of<br>
them.<br>
<br>
<br>
Handle denied as<br>
getFormR :: Int -&gt; Handler RepHtml<br>
<br>
I interpolate it like this:<br>
<br>
&lt;a href=@{FormR 11}&gt;<br>
<br>
and get error: Not in scope: data constructor `FormR&#39;<br>
<br>
Most likely i am missing something obvious. But cannot figure it out.<br>
<br>
<br>
Regards,<br>
Vagif Verdi<br>
<br>
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</blockquote></div><br></div></div>