summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-06-30 13:26:33 +0200
committerAndreas Klebinger <klebinger.andreas@gmx.at>2020-07-02 13:28:47 +0200
commite7b094156ee117785d54b4915236753223399264 (patch)
tree71bd53152431a8c8c77c5b2c54ef50274a46d872
parentf985333002c1690bf49debcc64fc65ed1d1de244 (diff)
downloadhaskell-wip/andreask/ghc-bangs.tar.gz
Enable BangPatterns, ScopedTypeVariables for ghc and hadrian by default.wip/andreask/ghc-bangs
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 494725a0b6..b9d4914812 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 11f34a26ba..e468d0042a 100644
--- a/hadrian/hadrian.cabal
+++ b/hadrian/hadrian.cabal
@@ -130,6 +130,7 @@ executable hadrian
, RecordWildCards
, ScopedTypeVariables
, TupleSections
+ , BangPatterns
other-extensions: MultiParamTypeClasses
, TypeFamilies
build-depends: base >= 4.8 && < 5