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 Jan 5, 2025
1 parent 4718f61 commit 50613cb
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 18 deletions.
16 changes: 15 additions & 1 deletion .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 @@ -201,10 +206,19 @@ jobs:
echo "packages: ${PKGDIR_blank_canvas_examples}" >> cabal.project
echo "packages: ${PKGDIR_wiki_suite}" >> cabal.project
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
source-repository-package
type: git
location: https://github.com/ku-fpg/javascript-bridge
tag: 683aff351c70c1ccb7cff6227fc14241ac4ada48
tag: 84ce469f560cd82bad8a359fb3197106d9473d2d
package blank-canvas-examples
flags: +examples
Expand Down
3 changes: 2 additions & 1 deletion blank-canvas.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ tested-with: GHC == 8.4.4
, 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 @@ -80,7 +81,7 @@ Library
default-language: Haskell2010
build-depends: aeson >= 1.4.4 && < 2.3,
base64-bytestring >= 1.0 && < 1.3,
base >= 4.11 && < 4.21,
base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 0.15,
bytestring >= 0.10 && < 0.13,
colour >= 2.2 && < 2.4,
Expand Down
13 changes: 12 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@ package blank-canvas-examples
source-repository-package
type: git
location: https://github.com/ku-fpg/javascript-bridge
tag: 683aff351c70c1ccb7cff6227fc14241ac4ada48
tag: 84ce469f560cd82bad8a359fb3197106d9473d2d

-- 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
27 changes: 14 additions & 13 deletions examples/blank-canvas-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tested-with: GHC == 8.4.4
, 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 Down Expand Up @@ -50,7 +51,7 @@ executable blank-canvas-example-trivial
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas
hs-source-dirs: trivial
default-language: Haskell2010
Expand All @@ -63,7 +64,7 @@ executable blank-canvas-example-html5canvastutorial
buildable: False
main-is: Main.hs
other-modules: Paths_blank_canvas_examples
build-depends: base >= 4.11 && < 4.21,
build-depends: base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -77,7 +78,7 @@ executable blank-canvas-example-keyread
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11 && < 4.21,
build-depends: base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -91,7 +92,7 @@ executable blank-canvas-example-rotate-square
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas,
open-browser >= 0.2.1,
text
Expand All @@ -105,7 +106,7 @@ executable blank-canvas-example-splat
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas
hs-source-dirs: splat
default-language: Haskell2010
Expand All @@ -117,7 +118,7 @@ executable blank-canvas-example-square
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas
hs-source-dirs: square
default-language: Haskell2010
Expand All @@ -129,7 +130,7 @@ executable blank-canvas-example-text
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11 && < 4.21,
build-depends: base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 0.15,
blank-canvas,
text >= 1.1 && < 2.2
Expand All @@ -143,7 +144,7 @@ executable blank-canvas-example-tictactoe
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas,
containers >= 0.5 && < 0.8,
text >= 1.1 && < 2.2
Expand All @@ -158,7 +159,7 @@ executable blank-canvas-example-bounce
else
buildable: False
main-is: Main.hs
build-depends: base >= 4.11&& < 4.21,
build-depends: base >= 4.11&& < 4.22,
blank-canvas,
streams >= 0.1,
text >= 1.1 && < 2.2
Expand All @@ -173,7 +174,7 @@ executable blank-canvas-example-bounce
-- buildable: False
-- main-is: Main.hs
-- other-modules: Paths_blank_canvas_examples
-- build-depends: base >= 4.11&& < 4.21,
-- build-depends: base >= 4.11&& < 4.22,
-- blank-canvas,
-- text >= 1.1 && < 2.2
-- hs-source-dirs: audio
Expand All @@ -186,7 +187,7 @@ executable blank-canvas-example-bounce
-- else
-- buildable: False
-- main-is: Main.hs
-- build-depends: base >= 4.11&& < 4.21,
-- build-depends: base >= 4.11&& < 4.22,
-- blank-canvas,
-- text >= 1.1 && < 2.2
-- hs-source-dirs: bounceAudio
Expand All @@ -200,7 +201,7 @@ executable blank-canvas-example-bounce
-- buildable: False
-- main-is: Main.hs
-- other-modules: Paths_blank_canvas_examples
-- build-depends: base >= 4.11&& < 4.21,
-- build-depends: base >= 4.11&& < 4.22,
-- blank-canvas,
-- text >= 1.1 && < 2.2,
-- stm >= 2.2 && < 2.6
Expand All @@ -215,7 +216,7 @@ executable blank-canvas-example-cursor
buildable: False
main-is: Main.hs
other-modules: Paths_blank_canvas_examples
build-depends: base >= 4.11 && < 4.21,
build-depends: base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 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 @@ -18,11 +18,12 @@ tested-with: GHC == 8.4.4
, 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.11 && < 4.21,
build-depends: base >= 4.11 && < 4.22,
base-compat >= 0.11 && < 0.15,
blank-canvas,
containers >= 0.5 && < 0.8,
Expand All @@ -33,7 +34,7 @@ executable wiki-suite
shake >= 0.17 && < 0.20,
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 50613cb

Please sign in to comment.