TH: missing instance of Lift for pairs/tuples

Duncan Coutts duncan.coutts at worcester.oxford.ac.uk
Tue May 25 08:09:40 EDT 2004


There do not seem to be Lift instance declarations for tuples:

:t lift (3::Int,4::Int)
No instance for (Lift (Int, Int))
  arising from use of `lift' at <No locn>

They are easy to add (up to a fixed size)

instance (Lift a, Lift b) => Lift (a,b)
  lift (a,b) = tupE [lift a, lift b]

It would be nice if this were in the TH.Syntax module.

Duncan



More information about the Glasgow-haskell-bugs mailing list