[commit: ghc] master: Remove references to Parser.y.pp (370b0f5)

git at git.haskell.org git at git.haskell.org
Mon Dec 1 15:26:28 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/370b0f5bac51b99525d09226a988ebddde9e09bd/ghc

>---------------------------------------------------------------

commit 370b0f5bac51b99525d09226a988ebddde9e09bd
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Mon Dec 1 09:26:51 2014 -0600

    Remove references to Parser.y.pp
    
    Summary:
    Commit 37d64a51348a803a1cf974d9e97ec9231215064a removed the preprocessing step
    for Parser.y.
    
    Reviewers: rodlogic, austin
    
    Reviewed By: austin
    
    Subscribers: carter, thomie
    
    Differential Revision: https://phabricator.haskell.org/D543


>---------------------------------------------------------------

370b0f5bac51b99525d09226a988ebddde9e09bd
 compiler/ghc.mk            | 3 ---
 compiler/hsSyn/HsTypes.lhs | 2 +-
 compiler/rename/RnExpr.lhs | 4 ++--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index c1b168e..a33fde8 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -268,9 +268,6 @@ compiler_CPP_OPTS += ${GhcCppOpts}
 
 define preprocessCompilerFiles
 # $0 = stage
-compiler/stage$1/build/Parser.y: compiler/parser/Parser.y.pp
-	$$(CPP) $$(RAWCPP_FLAGS) -P $$(compiler_CPP_OPTS) -x c $$< | grep -v '^#pragma GCC' > $$@
-
 compiler/stage$1/build/primops.txt: compiler/prelude/primops.txt.pp compiler/stage$1/$$(PLATFORM_H)
 	$$(CPP) $$(RAWCPP_FLAGS) -P $$(compiler_CPP_OPTS) -Icompiler/stage$1 -x c $$< | grep -v '^#pragma GCC' > $$@
 
diff --git a/compiler/hsSyn/HsTypes.lhs b/compiler/hsSyn/HsTypes.lhs
index af888cd..37aaa56 100644
--- a/compiler/hsSyn/HsTypes.lhs
+++ b/compiler/hsSyn/HsTypes.lhs
@@ -475,7 +475,7 @@ mk_forall_ty exp  tvs  ty                 = HsForAllTy exp Nothing (mkHsQTvs tvs
         -- Even if tvs is empty, we still make a HsForAll!
         -- In the Implicit case, this signals the place to do implicit quantification
         -- In the Explicit case, it prevents implicit quantification    
-        --      (see the sigtype production in Parser.y.pp)
+        --      (see the sigtype production in Parser.y)
         --      so that (forall. ty) isn't implicitly quantified
 
 plus :: HsExplicitFlag -> HsExplicitFlag -> HsExplicitFlag
diff --git a/compiler/rename/RnExpr.lhs b/compiler/rename/RnExpr.lhs
index edf16b8..533cdcd 100644
--- a/compiler/rename/RnExpr.lhs
+++ b/compiler/rename/RnExpr.lhs
@@ -166,7 +166,7 @@ rnExpr (HsQuasiQuoteE qq)
 
 ---------------------------------------------
 --      Sections
--- See Note [Parsing sections] in Parser.y.pp
+-- See Note [Parsing sections] in Parser.y
 rnExpr (HsPar (L loc (section@(SectionL {}))))
   = do  { (section', fvs) <- rnSection section
         ; return (HsPar (L loc section'), fvs) }
@@ -339,7 +339,7 @@ arrowFail e
        ; return (hsHoleExpr, emptyFVs) }
 
 ----------------------
--- See Note [Parsing sections] in Parser.y.pp
+-- See Note [Parsing sections] in Parser.y
 rnSection :: HsExpr RdrName -> RnM (HsExpr Name, FreeVars)
 rnSection section@(SectionR op expr)
   = do  { (op', fvs_op)     <- rnLExpr op



More information about the ghc-commits mailing list