Re: TH Show instance not working.

2017-08-20 Thread David Banas
Yep, that was it. Thanks, Li-yao! -db > On Aug 20, 2017, at 12:29 AM, Li-yao Xia wrote: > > Hi David, > > mkShow is probably making two separate declarations for "show" ([FunD "show" > _, FunD "show" _]) instead of one declaration with two clauses ([FunD "show" > [Clause

Re: TH Show instance not working.

2017-08-20 Thread Li-yao Xia
Hi David, mkShow is probably making two separate declarations for "show" ([FunD "show" _, FunD "show" _]) instead of one declaration with two clauses ([FunD "show" [Clause ..., Clause ...]]). Both pretty-print to the same text, but only the second one is actually valid. When there is only one