SerTH for Data.Map [solved]

Bulat Ziganshin bulatz at
Tue Feb 7 15:52:58 EST 2006

Hello Arie,

Tuesday, February 07, 2006, 10:47:12 PM, you wrote:

AP> Bulat, thanks for your quick reaction.

i know his code good enough because i borrowed it for my own TH
support ;)

AP> It turns out that I imported "Data.Map" qualified (as "Map") and had "Map"
AP> defined as

>> type Map = Map.Map

AP> . This type synonym was what SerTH stumbled on. Deriving the
AP> "Serializable" instance using the real name "Map.Map" solved it.

yes, this code don't support deriving via type synonyms. i will add
this to my own TH support, just for fun :)

Best regards,
 Bulat                            mailto:bulatz at

More information about the Libraries mailing list