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

2013-07-03 Thread Magicloud Magiclouds
Yes, I misunderstood the generated code and splice shown in error message. Thanks. On Wed, Jul 3, 2013 at 11:04 PM, adam vogt wrote: > On Wed, Jul 3, 2013 at 2:25 AM, Magicloud Magiclouds > wrote: > > Then I got > > Illegal variable name: `UserPassword' > > When splicing a TH declaration:

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

2013-07-03 Thread adam vogt
On Wed, Jul 3, 2013 at 2:25 AM, Magicloud Magiclouds wrote: > Then I got > Illegal variable name: `UserPassword' > When splicing a TH declaration: Hi Magicloud, GHC seems to be trying to tell you that variables are lowercase in haskell. Since you don't have code, I'm guessing your error is f

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

2013-07-02 Thread Magicloud Magiclouds
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 f