summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2021-03-10 15:28:48 -0500
committerBen Gamari <ben@smart-cactus.org>2021-03-10 16:58:50 -0500
commit115cd3c85a8c38f1fe2a10d4ee515f92c96dd5a2 (patch)
tree19214707fa15f127d05ae515c74cff7e85776a7c /compiler
parent30ccf9ed1f592531dac9f3d750278fac6303c3e4 (diff)
downloadhaskell-115cd3c85a8c38f1fe2a10d4ee515f92c96dd5a2.tar.gz
Use GHC2021 as default language
Diffstat (limited to 'compiler')
-rw-r--r--compiler/GHC/Driver/Session.hs12
1 files changed, 3 insertions, 9 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index b4218d29ba..f33373b130 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -267,7 +267,7 @@ import Control.Monad.Trans.Except
import Data.Ord
import Data.Char
-import Data.List (intercalate, delete, sortBy)
+import Data.List (intercalate, sortBy)
import qualified Data.Set as Set
import System.FilePath
import System.Directory
@@ -1309,14 +1309,8 @@ flattenExtensionFlags ml = foldr f defaultExtensionFlags
-- @docs/users_guide/exts@.
languageExtensions :: Maybe Language -> [LangExt.Extension]
-languageExtensions Nothing
- -- Nothing => the default case
- = LangExt.NondecreasingIndentation -- This has been on by default for some time
- : delete LangExt.DatatypeContexts -- The Haskell' committee decided to
- -- remove datatype contexts from the
- -- language:
- -- http://www.haskell.org/pipermail/haskell-prime/2011-January/003335.html
- (languageExtensions (Just Haskell2010))
+-- Nothing: the default case
+languageExtensions Nothing = languageExtensions (Just GHC2021)
languageExtensions (Just Haskell98)
= [LangExt.ImplicitPrelude,