[project @ 2004-12-21 17:08:59 by simonpj]
authorsimonpj <unknown>
Tue, 21 Dec 2004 17:09:02 +0000 (17:09 +0000)
committersimonpj <unknown>
Tue, 21 Dec 2004 17:09:02 +0000 (17:09 +0000)
commit893d7df5edea93ef247a4fbd57c72db09830ee36
tree9b1d546d4c734503e1cd8f8edf15ea2d03ab4c8d
parent180484cbf7afa29917b91d17306b94c1003afae2
[project @ 2004-12-21 17:08:59 by simonpj]
---------------------------------
     Template Haskell: dynamically scoped qualified names
---------------------------------

This commit adds a constructor to TH.Name, so that

nameBase (mkName "Foo.baz")    == "baz"
nameModule (MkName "Foo.baz") == "Foo"

We always did parse the module name off the front, but it used to
be done in hsSyn/Convert, but now it's done in TH.Syntax, which is
a better place.
ghc/compiler/hsSyn/Convert.lhs
ghc/compiler/typecheck/TcSplice.lhs