Skip to content

Commit

Permalink
Make it build with ghc 9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jan 14, 2025
1 parent 14c11ce commit 4512b9a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
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
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
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 4512b9a

Please sign in to comment.