Skip to content

Commit 50195d5

Browse files
authored
Merge pull request haskell#10678 from haskell/mergify/bp/3.14/pr-10667
Backport haskell#10667: CI: add GHC 9.12
2 parents 14efb59 + 848c448 commit 50195d5

File tree

131 files changed

+172
-257
lines changed

Some content is hidden

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

131 files changed

+172
-257
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ jobs:
7878
# support, so the PR *must* have a changelog entry.
7979
ghc:
8080
[
81+
"9.12.1",
8182
"9.10.1",
82-
"9.8.2",
83+
"9.8.4",
8384
"9.6.6",
8485
"9.4.8",
8586
"9.2.8",

Cabal-syntax/src/Distribution/Backpack.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ data OpenUnitId
9191
-- MUST NOT be for an indefinite component; an 'OpenUnitId'
9292
-- is guaranteed not to have any holes.
9393
DefiniteUnitId DefUnitId
94-
deriving (Generic, Read, Show, Eq, Ord, Typeable, Data)
94+
deriving (Generic, Read, Show, Eq, Ord, Data)
9595

9696
-- TODO: cache holes?
9797

@@ -165,7 +165,7 @@ mkDefUnitId cid insts =
165165
data OpenModule
166166
= OpenModule OpenUnitId ModuleName
167167
| OpenModuleVar ModuleName
168-
deriving (Generic, Read, Show, Eq, Ord, Typeable, Data)
168+
deriving (Generic, Read, Show, Eq, Ord, Data)
169169

170170
instance Binary OpenModule
171171
instance Structured OpenModule

Cabal-syntax/src/Distribution/CabalSpecVersion.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data CabalSpecVersion
3535
| -- 3.10: no changes
3636
CabalSpecV3_12
3737
| CabalSpecV3_14
38-
deriving (Eq, Ord, Show, Read, Enum, Bounded, Typeable, Data, Generic)
38+
deriving (Eq, Ord, Show, Read, Enum, Bounded, Data, Generic)
3939

4040
instance Binary CabalSpecVersion
4141
instance Structured CabalSpecVersion

Cabal-syntax/src/Distribution/Compat/Graph.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE BangPatterns #-}
22
{-# LANGUAGE CPP #-}
3-
{-# LANGUAGE DeriveDataTypeable #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
65
{-# LANGUAGE TypeFamilies #-}
@@ -122,7 +121,6 @@ data Graph a = Graph
122121
, graphKeyToVertex :: Key a -> Maybe G.Vertex
123122
, graphBroken :: [(a, [Key a])]
124123
}
125-
deriving (Typeable)
126124

127125
-- NB: Not a Functor! (or Traversable), because you need
128126
-- to restrict Key a ~ Key b. We provide our own mapping

Cabal-syntax/src/Distribution/Compat/NonEmptySet.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import Control.DeepSeq (NFData (..))
3232
import Data.Data (Data)
3333
import Data.List.NonEmpty (NonEmpty (..))
3434
import Data.Semigroup (Semigroup (..))
35-
import Data.Typeable (Typeable)
3635

3736
import qualified Data.Foldable as F
3837
import qualified Data.Set as Set
@@ -48,7 +47,7 @@ import Control.Monad (fail)
4847

4948
-- | @since 3.4.0.0
5049
newtype NonEmptySet a = NES (Set.Set a)
51-
deriving (Eq, Ord, Typeable, Data, Read)
50+
deriving (Eq, Ord, Data, Read)
5251

5352
-------------------------------------------------------------------------------
5453
-- Instances

Cabal-syntax/src/Distribution/Compat/Semigroup.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE DeriveDataTypeable #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
@@ -18,7 +17,6 @@ module Distribution.Compat.Semigroup
1817
, gmempty
1918
) where
2019

21-
import Data.Typeable (Typeable)
2220
import Distribution.Compat.Binary (Binary)
2321
import Distribution.Utils.Structured (Structured)
2422

@@ -39,7 +37,7 @@ instance Semigroup (First' a) where
3937

4038
-- | A copy of 'Data.Semigroup.Last'.
4139
newtype Last' a = Last' {getLast' :: a}
42-
deriving (Eq, Ord, Read, Show, Generic, Binary, Typeable)
40+
deriving (Eq, Ord, Read, Show, Generic, Binary)
4341

4442
instance Structured a => Structured (Last' a)
4543

@@ -52,7 +50,7 @@ instance Functor Last' where
5250
-- | A wrapper around 'Maybe', providing the 'Semigroup' and 'Monoid' instances
5351
-- implemented for 'Maybe' since @base-4.11@.
5452
newtype Option' a = Option' {getOption' :: Maybe a}
55-
deriving (Eq, Ord, Read, Show, Binary, Generic, Functor, Typeable)
53+
deriving (Eq, Ord, Read, Show, Binary, Generic, Functor)
5654

5755
instance Structured a => Structured (Option' a)
5856

Cabal-syntax/src/Distribution/Compiler.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ data CompilerFlavor
7878
| MHS -- MicroHS, see https://github.com/augustss/MicroHs
7979
| HaskellSuite String -- string is the id of the actual compiler
8080
| OtherCompiler String
81-
deriving (Generic, Show, Read, Eq, Ord, Typeable, Data)
81+
deriving (Generic, Show, Read, Eq, Ord, Data)
8282

8383
instance Binary CompilerFlavor
8484
instance Structured CompilerFlavor
@@ -143,7 +143,6 @@ data PerCompilerFlavor v = PerCompilerFlavor v v
143143
, Read
144144
, Eq
145145
, Ord
146-
, Typeable
147146
, Data
148147
, Functor
149148
, Foldable
@@ -174,7 +173,7 @@ instance (Semigroup a, Monoid a) => Monoid (PerCompilerFlavor a) where
174173
-- ------------------------------------------------------------
175174

176175
data CompilerId = CompilerId CompilerFlavor Version
177-
deriving (Eq, Generic, Ord, Read, Show, Typeable)
176+
deriving (Eq, Generic, Ord, Read, Show)
178177

179178
instance Binary CompilerId
180179
instance Structured CompilerId
@@ -224,7 +223,7 @@ instance Binary CompilerInfo
224223
data AbiTag
225224
= NoAbiTag
226225
| AbiTag String
227-
deriving (Eq, Generic, Show, Read, Typeable)
226+
deriving (Eq, Generic, Show, Read)
228227

229228
instance Binary AbiTag
230229
instance Structured AbiTag

Cabal-syntax/src/Distribution/License.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ data License
111111
OtherLicense
112112
| -- | Indicates an erroneous license name.
113113
UnknownLicense String
114-
deriving (Generic, Read, Show, Eq, Ord, Typeable, Data)
114+
deriving (Generic, Read, Show, Eq, Ord, Data)
115115

116116
instance Binary License
117117
instance Structured License

Cabal-syntax/src/Distribution/ModuleName.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import qualified Text.PrettyPrint as Disp
4040

4141
-- | A valid Haskell module name.
4242
newtype ModuleName = ModuleName ShortText
43-
deriving (Eq, Generic, Ord, Read, Show, Typeable, Data)
43+
deriving (Eq, Generic, Ord, Read, Show, Data)
4444

4545
unModuleName :: ModuleName -> String
4646
unModuleName (ModuleName s) = fromShortText s

Cabal-syntax/src/Distribution/SPDX/License.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data License
4141
NONE
4242
| -- | A valid SPDX License Expression as defined in Appendix IV.
4343
License LicenseExpression
44-
deriving (Show, Read, Eq, Ord, Typeable, Data, Generic)
44+
deriving (Show, Read, Eq, Ord, Data, Generic)
4545

4646
instance Binary License
4747
instance Structured License

0 commit comments

Comments
 (0)