[Git][ghc/ghc][ghc-9.0] Import qualified Prelude in Cmm/Parser.y
Ben Gamari
gitlab at gitlab.haskell.org
Mon Aug 31 17:37:21 UTC 2020
Ben Gamari pushed to branch ghc-9.0 at Glasgow Haskell Compiler / GHC
Commits:
29e9d2d1 by Vladislav Zavialov at 2020-08-29T16:54:45+02:00
Import qualified Prelude in Cmm/Parser.y
In preparation for the next version of 'happy', c95920 added a qualified
import to GHC/Parser.y but for some reason neglected GHC/Cmm/Parser.y
This patch adds the missing qualified import to GHC/Cmm/Parser.y and
also adds a clarifying comment to explain why this import is needed.
(cherry picked from commit fddddbf47d6ba2b1b3b6ec89bd40c8fa020e6606)
- - - - -
2 changed files:
- compiler/GHC/Cmm/Parser.y
- compiler/GHC/Parser.y
Changes:
=====================================
compiler/GHC/Cmm/Parser.y
=====================================
@@ -203,6 +203,7 @@ necessary to the stack to accommodate it (e.g. 2).
module GHC.Cmm.Parser ( parseCmmFile ) where
import GHC.Prelude
+import qualified Prelude -- for happy-generated code
import GHC.StgToCmm.ExtCode
import GHC.Cmm.CallConv
=====================================
compiler/GHC/Parser.y
=====================================
@@ -46,7 +46,7 @@ import Data.Char
import Data.Maybe ( maybeToList )
import Control.Monad ( mplus )
import Control.Applicative ((<$))
-import qualified Prelude
+import qualified Prelude -- for happy-generated code
-- compiler
import GHC.Hs
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/29e9d2d106082ce435a24ec46c48f257f53a16f6
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/29e9d2d106082ce435a24ec46c48f257f53a16f6
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200831/b7f92780/attachment.html>
More information about the ghc-commits
mailing list