[Template-haskell] mkName problem

Simon Peyton-Jones simonpj at microsoft.com
Wed Oct 26 08:06:20 EDT 2005


You are quite right.  I've fixed the HEAD, and the fix should appear in
6.4.2

 

Thanks for the report

 

Simon

 

________________________________

From: template-haskell-bounces at haskell.org
[mailto:template-haskell-bounces at haskell.org] On Behalf Of Tomasz
Zielonka
Sent: 07 October 2005 14:12
To: template-haskell at haskell.org
Subject: [Template-haskell] mkName problem

 

Hello!

The attached code shows a behaviour which I don't understand. This could
be a bug in TH or a misunderstanding on my side. The problem is that
dynamically
bound Names made with mkName sometimes "don't see" the variable. See
the code for details. It could be a bit shorter, but I wanted to show
why I cat't
use the 'var syntax. Try to --make T, then uncomment the marked line in
T.hs.

Best regards
Tomasz



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/template-haskell/attachments/20051026/a5eded9e/attachment.htm


More information about the template-haskell mailing list