[Haskell-cafe] How to use Template Haskell based on code that generated by another Template?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Wed Jul 3 08:25:14 CEST 2013


I have a yesod project, which generated, say, UserPassword in module Model.
Then I wrote my template code which generate a piece of code to use
UserPassword. I imported Model in my code.

Then I got
Illegal variable name: `UserPassword'
    When splicing a TH declaration:
-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130703/330f0c44/attachment.htm>


More information about the Haskell-Cafe mailing list