Make dataToQa work regardless of the set of in-scope names (fixes #4491).
authorGeoffrey Mainland <gmainlan@microsoft.com>
Tue, 4 Oct 2011 16:57:29 +0000 (17:57 +0100)
committerGeoffrey Mainland <gmainlan@microsoft.com>
Wed, 9 Nov 2011 16:12:37 +0000 (16:12 +0000)
commitc4c250a9a54e49505114b1ad81b6851ae501e8bd
treedfa9af8b08feaa909e8e7b11b125ae7500fb2ab9
parent67850a7cb43303d7fb93177cae9298843fb99fe9
Make dataToQa work regardless of the set of in-scope names (fixes #4491).

Use tyConPackage and tyConModule to determine the package and module to which a
data type belongs. With this information we can use mkNameG_d to build
constructor names which ensures that dataToQa creates TH terms that are
independent of the set of in-scope names.
Language/Haskell/TH/Quote.hs