cvs commit: fptools/ghc/compiler/hsSyn Convert.lhs fptools/ghc/compiler/typecheck TcSplice.lhs fptools/libraries/template-haskell/Language/Haskell/TH Syntax.hs

Simon Peyton Jones simonpj at haskell.org
Tue Dec 21 12:09:03 EST 2004


simonpj     2004/12/21 09:09:02 PST

  Modified files:
    ghc/compiler/hsSyn   Convert.lhs 
    ghc/compiler/typecheck TcSplice.lhs 
    libraries/template-haskell/Language/Haskell/TH Syntax.hs 
  Log:
  	---------------------------------
       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.
  
  Revision  Changes    Path
  1.59      +3 -19     fptools/ghc/compiler/hsSyn/Convert.lhs
  1.48      +13 -10    fptools/ghc/compiler/typecheck/TcSplice.lhs
  1.9       +30 -7     fptools/libraries/template-haskell/Language/Haskell/TH/Syntax.hs


More information about the Cvs-libraries mailing list