Re: Template Haskell: dataToExpQ and constructor mis-match

2012-02-08 Thread Ian Lynagh
On Tue, Jan 24, 2012 at 09:55:35AM -0800, Conal Elliott wrote: > I'm looking for a reliable way to turn values into Template Haskell > expressions. I thought dataToExpQ from Language.Haskell.TH.Quote was the > ticket, but it appears to produce constructors different from those > produced by [| ...

Template Haskell: dataToExpQ and constructor mis-match

2012-01-24 Thread Conal Elliott
I'm looking for a reliable way to turn values into Template Haskell expressions. I thought dataToExpQ from Language.Haskell.TH.Quote was the ticket, but it appears to produce constructors different from those produced by [| ... |], including [], (:), (), and (,). Here's an example run for (). I'm u