Skip to content

Commit 4f84593

Browse files
authored
Merge pull request #12018 from haskell/ghc2021
Switch default-language to GHC2021 instead of Haskell2010
2 parents 57e070f + 174c748 commit 4f84593

379 files changed

Lines changed: 61 additions & 1110 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cabal-QuickCheck/Cabal-QuickCheck.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description:
88
Provides QuickCheck Arbitrary instances for some types in Cabal
99

1010
library
11-
default-language: Haskell2010
11+
default-language: GHC2021
1212
hs-source-dirs: src
1313
ghc-options: -Wall
1414
build-depends:

Cabal-QuickCheck/src/Test/QuickCheck/GenericArbitrary.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{-# LANGUAGE FlexibleContexts #-}
21
{-# LANGUAGE GADTs #-}
3-
{-# LANGUAGE TypeOperators #-}
42
module Test.QuickCheck.GenericArbitrary (
53
genericArbitrary,
64
GArbitrary,

Cabal-QuickCheck/src/Test/QuickCheck/Instances/Cabal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE FlexibleInstances #-}
32
{-# OPTIONS_GHC -Wno-orphans #-}
43
module Test.QuickCheck.Instances.Cabal () where
54

Cabal-described/Cabal-described.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Provides rere bindings
77
build-type: Simple
88

99
library
10-
default-language: Haskell2010
10+
default-language: GHC2021
1111
hs-source-dirs: src
1212
ghc-options: -Wall
1313
build-depends:

Cabal-described/src/Distribution/Described.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{-# LANGUAGE FlexibleInstances #-}
21
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE ScopedTypeVariables #-}
42
module Distribution.Described (
53
Described (..),
64
describeDoc,

Cabal-described/src/Distribution/Utils/CharSet.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE BangPatterns #-}
21
-- | Sets of characters.
32
--
43
-- Using this is more efficient than 'RE.Type.Alt':ng individual characters.

Cabal-described/src/Distribution/Utils/GrammarRegex.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{-# LANGUAGE DeriveTraversable #-}
21
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE ScopedTypeVariables #-}
42
module Distribution.Utils.GrammarRegex (
53
-- * Regular expressions
64
GrammarRegex (..),

Cabal-hooks/Cabal-hooks.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source-repository head
2323
subdir: Cabal-hooks
2424

2525
library
26-
default-language: Haskell2010
26+
default-language: GHC2021
2727
hs-source-dirs: src
2828

2929
build-depends:

Cabal-hooks/src/Distribution/Simple/SetupHooks.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE CPP #-}
31
{-# LANGUAGE DataKinds #-}
42
{-# LANGUAGE DerivingStrategies #-}
53
{-# LANGUAGE DuplicateRecordFields #-}
6-
{-# LANGUAGE NamedFieldPuns #-}
7-
{-# LANGUAGE RankNTypes #-}
84
{-# LANGUAGE StaticPointers #-}
95

106
{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-}

Cabal-syntax/Cabal-syntax.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ source-repository head
2424
subdir: Cabal-syntax
2525

2626
library
27-
default-language: Haskell2010
27+
default-language: GHC2021
28+
-- Disabling ImportQualifiedPost, otherwise fourmolu jumps ahead to apply it everywhere
29+
default-extensions: NoImportQualifiedPost
2830
hs-source-dirs: src
2931

3032
build-depends:

0 commit comments

Comments
 (0)