Skip to content

Commit

Permalink
Allow building with GHC 9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Dec 28, 2024
1 parent 7530e3b commit 05540af
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.12.1
compilerKind: ghc
compilerVersion: 9.12.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.1
compilerKind: ghc
compilerVersion: 9.10.1
Expand Down Expand Up @@ -217,6 +222,15 @@ jobs:
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package wiki-suite" >> cabal.project ; fi
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
cat >> cabal.project <<EOF
allow-newer: aeson:ghc-prim
allow-newer: aeson:template-haskell
allow-newer: indexed-traversable:base
allow-newer: indexed-traversable-instances:base
allow-newer: integer-conversion:base
allow-newer: semialign:base
allow-newer: these:base
allow-newer: uuid-types:template-haskell
package blank-canvas-examples
flags: +examples
EOF
Expand Down
3 changes: 2 additions & 1 deletion blank-canvas.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ tested-with: GHC == 8.0.2
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
data-files:
static/index.html
static/jquery.js
Expand Down Expand Up @@ -81,7 +82,7 @@ Library
default-language: Haskell2010
build-depends: aeson >= 1.4.4 && < 2.3,
base64-bytestring >= 1.0 && < 1.3,
base >= 4.9 && < 4.21,
base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
bytestring >= 0.10 && < 0.13,
colour >= 2.2 && < 2.4,
Expand Down
11 changes: 11 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ packages: .

package blank-canvas-examples
flags: +examples

-- TODO: Remove this once the ecosystem has caught up with GHC 9.12
allow-newer:
aeson:ghc-prim,
aeson:template-haskell,
indexed-traversable:base,
indexed-traversable-instances:base,
integer-conversion:base,
semialign:base,
these:base,
uuid-types:template-haskell
23 changes: 12 additions & 11 deletions examples/blank-canvas-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tested-with: GHC == 8.0.2
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
data-files:
static/data/dataURL.txt
images/cursor.png
Expand All @@ -47,7 +48,7 @@ executable blank-canvas-example-trivial
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas
hs-source-dirs: trivial
default-language: Haskell2010
Expand All @@ -60,7 +61,7 @@ executable blank-canvas-example-html5canvastutorial
buildable: False
main-is: Main.hs
other-modules: Paths_blank_canvas_examples
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -74,7 +75,7 @@ executable blank-canvas-example-keyread
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -88,7 +89,7 @@ executable blank-canvas-example-rotate-square
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas
hs-source-dirs: rotate-square
default-language: Haskell2010
Expand All @@ -100,7 +101,7 @@ executable blank-canvas-example-splat
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas
hs-source-dirs: splat
default-language: Haskell2010
Expand All @@ -112,7 +113,7 @@ executable blank-canvas-example-square
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas
hs-source-dirs: square
default-language: Haskell2010
Expand All @@ -124,7 +125,7 @@ executable blank-canvas-example-text
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -138,7 +139,7 @@ executable blank-canvas-example-tictactoe
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas,
containers >= 0.5 && < 0.8,
text >= 1.1 && < 2.2
Expand All @@ -153,7 +154,7 @@ executable blank-canvas-example-bounce
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas,
streams >= 0.1,
text >= 1.1 && < 2.2
Expand All @@ -168,7 +169,7 @@ executable blank-canvas-example-audio
buildable: False
main-is: Main.hs
other-modules: Paths_blank_canvas_examples
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
blank-canvas
hs-source-dirs: audio
default-language: Haskell2010
Expand All @@ -181,7 +182,7 @@ executable blank-canvas-example-cursor
buildable: False
main-is: Main.hs
other-modules: Paths_blank_canvas_examples
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
blank-canvas,
keys >= 3.10,
Expand Down
5 changes: 3 additions & 2 deletions wiki-suite/wiki-suite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ tested-with: GHC == 8.0.2
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
data-files: images/Haskell.jpg
images/House.jpg

executable wiki-suite
build-depends: base >= 4.9 && < 4.21,
build-depends: base >= 4.9 && < 4.22,
base-compat-batteries >= 0.10 && < 0.15,
blank-canvas,
containers >= 0.5 && < 0.8,
Expand All @@ -34,7 +35,7 @@ executable wiki-suite
stm >= 2.2 && < 2.6,
streams >= 0.1,
text >= 1.1 && < 2.2,
time >= 1.4 && < 1.13,
time >= 1.4 && < 1.15,
unix >= 2.7 && < 2.9,
vector >= 0.10 && < 0.14

Expand Down

0 comments on commit 05540af

Please sign in to comment.