summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-06-30 13:26:33 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-22 20:19:22 -0400
commit9f3ff8fd24b94c9d4a221e6aba3e21de42b0f02c (patch)
treecf418c9cb4ecec7dcbb67c3163cecf3dde466be2
parente9491668640227a7ae7f6d0506d36af3a10cdd49 (diff)
downloadhaskell-9f3ff8fd24b94c9d4a221e6aba3e21de42b0f02c.tar.gz
Enable BangPatterns, ScopedTypeVariables for ghc and hadrian by default.
This is only for their respective codebases.
-rw-r--r--compiler/ghc.cabal.in4
-rw-r--r--ghc/ghc-bin.cabal.in3
-rw-r--r--hadrian/hadrian.cabal1
3 files changed, 5 insertions, 3 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index dff5244f08..755ef4dab7 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -97,7 +97,6 @@ Library
CPP-Options: -DCAN_LOAD_DLL
Other-Extensions:
- BangPatterns
CPP
DataKinds
DeriveDataTypeable
@@ -116,7 +115,6 @@ Library
NondecreasingIndentation
RankNTypes
RecordWildCards
- ScopedTypeVariables
StandaloneDeriving
Trustworthy
TupleSections
@@ -153,6 +151,8 @@ Library
-- we use an explicit Prelude
Default-Extensions:
NoImplicitPrelude
+ ,BangPatterns
+ ,ScopedTypeVariables
Exposed-Modules:
GHC.Iface.Ext.Types
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in
index b87d4b7ed9..cc6864b0fa 100644
--- a/ghc/ghc-bin.cabal.in
+++ b/ghc/ghc-bin.cabal.in
@@ -74,7 +74,6 @@ Executable ghc
GHCi.UI.Tags
GHCi.Util
Other-Extensions:
- BangPatterns
FlexibleInstances
LambdaCase
MagicHash
@@ -102,3 +101,5 @@ Executable ghc
-- GHCi can be used to load it all at once.
Default-Extensions:
NoImplicitPrelude
+ , ScopedTypeVariables
+ , BangPatterns \ No newline at end of file
diff --git a/hadrian/hadrian.cabal b/hadrian/hadrian.cabal
index 018068aaf3..fed233dea9 100644
--- a/hadrian/hadrian.cabal
+++ b/hadrian/hadrian.cabal
@@ -131,6 +131,7 @@ executable hadrian
, RecordWildCards
, ScopedTypeVariables
, TupleSections
+ , BangPatterns
other-extensions: MultiParamTypeClasses
, TypeFamilies
build-depends: Cabal >= 3.0 && < 3.3