diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-06-30 13:26:33 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-22 20:19:22 -0400 |
commit | 9f3ff8fd24b94c9d4a221e6aba3e21de42b0f02c (patch) | |
tree | cf418c9cb4ecec7dcbb67c3163cecf3dde466be2 | |
parent | e9491668640227a7ae7f6d0506d36af3a10cdd49 (diff) | |
download | haskell-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.in | 4 | ||||
-rw-r--r-- | ghc/ghc-bin.cabal.in | 3 | ||||
-rw-r--r-- | hadrian/hadrian.cabal | 1 |
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 |