[Haskell-cafe] Problem with TemplateHaskell

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Wed Nov 2 14:53:58 CET 2011


On Wed, Nov 2, 2011 at 4:50 PM, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> On Wed, Nov 2, 2011 at 4:08 PM, Max Bolingbroke
> <batterseapower at hotmail.com> wrote:
>> On 2 November 2011 07:42, Magicloud Magiclouds
>> <magicloud.magiclouds at gmail.com> wrote:
>>> How to avoid the name changing?
>>
>> Maybe you should use "nameBase" rather than "show"?
>>
>> Max
>>
>
> Yes, that is one of the problem.
> And just now I found out that, the name changing occurred when using
> quote, so at the very beginning, "data T" was not "data T" already.
>
> --
> 竹密岂妨流水过
> 山高哪阻野云飞
>

I kind of fingering out where am I wrong.
I should declare the data type in quote. I should make it outside the
template and using type name and reify to get it in bson.

-- 
竹密岂妨流水过
山高哪阻野云飞



More information about the Haskell-Cafe mailing list