[Git][ghc/ghc][wip/happy-coerce] Restore the --coerce option in 'happy' configuration
Vladislav Zavialov
gitlab at gitlab.haskell.org
Thu May 9 18:46:20 UTC 2019
Vladislav Zavialov pushed to branch wip/happy-coerce at Glasgow Haskell Compiler / GHC
Commits:
c44388de by Vladislav Zavialov at 2019-05-09T18:45:25Z
Restore the --coerce option in 'happy' configuration
happy-1.19.10 has been released with a fix for --coerce in the presence
of higher rank types. This should result in about 10% performance
improvement in the parser.
- - - - -
5 changed files:
- .gitlab-ci.yml
- aclocal.m4
- hadrian/hadrian.cabal
- hadrian/src/Settings/Builders/Happy.hs
- mk/config.mk.in
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -2,7 +2,7 @@ variables:
GIT_SSL_NO_VERIFY: "1"
# Commit of ghc/ci-images repository from which to pull Docker images
- DOCKER_REV: cefaee3c742af193e0f7783f87edb0d35374515c
+ DOCKER_REV: ac65f31dcffb09cd7ca7aaa70f447fcbb19f427f
# Sequential version number capturing the versions of all tools fetched by
# .gitlab/win32-init.sh.
=====================================
aclocal.m4
=====================================
@@ -951,8 +951,8 @@ changequote([, ])dnl
])
if test ! -f compiler/parser/Parser.hs || test ! -f compiler/cmm/CmmParse.hs
then
- FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.19.4],
- [AC_MSG_ERROR([Happy version 1.19.4 or later is required to compile GHC.])])[]
+ FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.19.10],
+ [AC_MSG_ERROR([Happy version 1.19.10 or later is required to compile GHC.])])[]
fi
HappyVersion=$fptools_cv_happy_version;
AC_SUBST(HappyVersion)
=====================================
hadrian/hadrian.cabal
=====================================
@@ -132,7 +132,7 @@ executable hadrian
, transformers >= 0.4 && < 0.6
, unordered-containers >= 0.2.1 && < 0.3
build-tools: alex >= 3.1
- , happy >= 1.19.4
+ , happy >= 1.19.10
ghc-options: -Wall
-Wincomplete-record-updates
-Wredundant-constraints
=====================================
hadrian/src/Settings/Builders/Happy.hs
=====================================
@@ -3,7 +3,7 @@ module Settings.Builders.Happy (happyBuilderArgs) where
import Settings.Builders.Common
happyBuilderArgs :: Args
-happyBuilderArgs = builder Happy ? mconcat [ arg "-ag" -- TODO (int-index): restore the -c option when happy/pull/134 is merged.
+happyBuilderArgs = builder Happy ? mconcat [ arg "-agc"
, arg "--strict"
, arg =<< getInput
, arg "-o", arg =<< getOutput ]
=====================================
mk/config.mk.in
=====================================
@@ -858,8 +858,7 @@ HAPPY_VERSION = @HappyVersion@
#
# Options to pass to Happy when we're going to compile the output with GHC
#
-# TODO (int-index): restore the -c option when happy/pull/134 is merged.
-SRC_HAPPY_OPTS = -ag --strict
+SRC_HAPPY_OPTS = -agc --strict
#
# Alex
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/c44388dec645aa4e85966dcd4de61fbe281811de
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/c44388dec645aa4e85966dcd4de61fbe281811de
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/20190509/c6031d25/attachment-0001.html>
More information about the ghc-commits
mailing list