Skip to content

Commit

Permalink
Merge pull request #206 from erikd/erikd/ghc-9.12
Browse files Browse the repository at this point in the history
Support ghc 9.12
  • Loading branch information
coot authored Jan 14, 2025
2 parents 14c11ce + c913ce8 commit 978dddb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["8.10", "9.2", "9.4", "9.6", "9.8", "9.10"]
ghc: ["8.10", "9.2", "9.4", "9.6", "9.8", "9.10", "9.12"]
os: [ubuntu-latest, macos-latest, windows-latest]

defaults:
Expand Down
13 changes: 12 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
index-state: hackage.haskell.org 2024-05-17T03:42:00Z
index-state: hackage.haskell.org 2025-01-14T02:09:49Z

packages: ./io-sim
./io-classes
Expand All @@ -11,3 +11,14 @@ package io-classes

package strict-stm
flags: +asserts

if impl (ghc >= 9.12)
allow-newer:
-- Stuck on `cabal-3.14` issues and recalcitrant maintainers
-- https://github.com/haskell/aeson/issues/1124
, aeson:ghc-prim
, aeson:template-haskell

-- Fix blocked by aeson
-- https://github.com/haskellari/microstache/issues/43
, microstache:base
2 changes: 2 additions & 0 deletions io-classes/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### next version

* Support ghc-9.12

### Breaking changes

* Added `threadLabel` to `MonadThread`
Expand Down
12 changes: 6 additions & 6 deletions io-classes/io-classes.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ library
TypeFamilyDependencies
TypeOperators
UndecidableInstances
build-depends: base >=4.9 && <4.21,
build-depends: base >=4.9 && <4.22,
array,
async >=2.1,
bytestring,
Expand Down Expand Up @@ -140,7 +140,7 @@ library strict-stm
reexported-modules: Control.Concurrent.Class.MonadSTM.TSem as Control.Concurrent.Class.MonadSTM.Strict.TSem
default-language: Haskell2010
default-extensions: ImportQualifiedPost
build-depends: base >= 4.9 && <4.21,
build-depends: base >= 4.9 && <4.22,
array,
stm >= 2.5 && <2.6,

Expand All @@ -163,7 +163,7 @@ library strict-mvar
exposed-modules: Control.Concurrent.Class.MonadMVar.Strict
default-language: Haskell2010
default-extensions: ImportQualifiedPost
build-depends: base >= 4.9 && <4.21,
build-depends: base >= 4.9 && <4.22,
io-classes:io-classes,
ghc-options: -Wall
-Wno-unticked-promoted-constructors
Expand All @@ -190,7 +190,7 @@ library si-timers
NumericUnderscores,
ScopedTypeVariables,
TypeFamilies
build-depends: base >=4.9 && <4.21,
build-depends: base >=4.9 && <4.22,
deepseq,
mtl,
nothunks,
Expand All @@ -214,7 +214,7 @@ library mtl
, Control.Monad.Class.MonadTime.SI.Trans
, Control.Monad.Class.MonadTimer.Trans
, Control.Monad.Class.MonadTimer.SI.Trans
build-depends: base >=4.9 && <4.21,
build-depends: base >=4.9 && <4.22,
array,
mtl,

Expand All @@ -231,7 +231,7 @@ library testlib
exposed-modules: Test.Control.Concurrent.Class.MonadMVar.Strict.WHNF
default-language: Haskell2010
default-extensions: ImportQualifiedPost
build-depends: base >=4.9 && <4.21,
build-depends: base >=4.9 && <4.22,
nothunks,
QuickCheck,
io-classes:strict-mvar
Expand Down
1 change: 0 additions & 1 deletion io-classes/src/Control/Monad/Class/MonadSTM/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,6 @@ unGetTBQueueDefault (TBQueue rsize read wsize _write _size) a = do
-- | Default implementation of 'TArray'.
--
data TArrayDefault m i e = TArray (Array i (TVar m e))
deriving Typeable

deriving instance (Eq (TVar m e), Ix i) => Eq (TArrayDefault m i e)

Expand Down
1 change: 1 addition & 0 deletions io-sim/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
than one that finishes with `SimResult`.
- More polymorphic `ppTrace_` type signature.
- Fixed `tryReadTBQueue` when returning `Nothing`.
- Support ghc 9.12

## 1.6.0.0

Expand Down
2 changes: 1 addition & 1 deletion io-sim/io-sim.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ library
RankNTypes,
ScopedTypeVariables,
TypeFamilies
build-depends: base >=4.9 && <4.21,
build-depends: base >=4.9 && <4.22,
io-classes:{io-classes,strict-stm,si-timers}
^>=1.6 || ^>= 1.7,
exceptions >=0.10,
Expand Down

0 comments on commit 978dddb

Please sign in to comment.