[Haskell-cafe] Problem with TemplateHaskell
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"?
> 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