summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInari Listenmaa <inari.listenmaa@gmail.com>2022-05-06 03:26:00 +0200
committerGitHub <noreply@github.com>2022-05-06 03:26:00 +0200
commitec70e4a83e75691264a6f227819a90e123905a68 (patch)
tree8699c11cd01ed82a09754da9892279ae31b7c11e
parent6414bc8923ddf24c65eed053d03244c054c86dcb (diff)
parente6ade90679e53e793cbe3cf0d526f11754d4b3d2 (diff)
Merge pull request #136 from mengwong/ghc9
compiles with GHC 9.0.2
-rw-r--r--.github/workflows/build-all-versions.yml2
-rw-r--r--gf.cabal16
-rw-r--r--src/runtime/haskell-bind/pgf2.cabal2
-rw-r--r--src/runtime/haskell/pgf.cabal2
-rw-r--r--stack-ghc9.0.2.yaml14
5 files changed, 25 insertions, 11 deletions
diff --git a/.github/workflows/build-all-versions.yml b/.github/workflows/build-all-versions.yml
index 445493065..ecbcfff99 100644
--- a/.github/workflows/build-all-versions.yml
+++ b/.github/workflows/build-all-versions.yml
@@ -66,7 +66,7 @@ jobs:
strategy:
matrix:
stack: ["latest"]
- ghc: ["7.10.3","8.0.2", "8.2.2", "8.4.4", "8.6.5", "8.8.4", "8.10.7"]
+ ghc: ["7.10.3","8.0.2", "8.2.2", "8.4.4", "8.6.5", "8.8.4", "8.10.7", "9.0.2"]
# ghc: ["8.8.3"]
steps:
diff --git a/gf.cabal b/gf.cabal
index b4dcf81a0..53548cd40 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -11,7 +11,7 @@ description: GF, Grammatical Framework, is a programming language for multilingu
maintainer: John J. Camilleri <john@digitalgrammars.com>
homepage: https://www.grammaticalframework.org/
bug-reports: https://github.com/GrammaticalFramework/gf-core/issues
-tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.10.4
+tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.10.4, GHC==9.0.2
data-dir: src
extra-source-files:
@@ -46,7 +46,7 @@ data-files:
custom-setup
setup-depends:
- base >= 4.9.1 && < 4.15,
+ base >= 4.9.1 && < 4.16,
Cabal >= 1.22.0.0,
directory >= 1.3.0 && < 1.4,
filepath >= 1.4.1 && < 1.5,
@@ -81,11 +81,11 @@ library
build-depends:
-- GHC 8.0.2 to GHC 8.10.4
array >= 0.5.1 && < 0.6,
- base >= 4.9.1 && < 4.15,
+ base >= 4.9.1 && < 4.16,
bytestring >= 0.10.8 && < 0.11,
containers >= 0.5.7 && < 0.7,
exceptions >= 0.8.3 && < 0.11,
- ghc-prim >= 0.5.0 && < 0.7,
+ ghc-prim >= 0.5.0 && < 0.7.1,
mtl >= 2.2.1 && < 2.3,
pretty >= 1.1.3 && < 1.2,
random >= 1.1 && < 1.3,
@@ -302,14 +302,14 @@ library
build-depends:
cgi >= 3001.3.0.2 && < 3001.6,
httpd-shed >= 0.4.0 && < 0.5,
- network>=2.3 && <2.7
+ network>=2.3 && <3.2
if flag(network-uri)
build-depends:
network-uri >= 2.6.1.0 && < 2.7,
- network>=2.6 && <2.7
+ network>=2.6 && <3.2
else
build-depends:
- network >= 2.5 && <2.6
+ network >= 2.5 && <3.2
cpp-options: -DSERVER_MODE
other-modules:
@@ -400,7 +400,7 @@ test-suite gf-tests
main-is: run.hs
hs-source-dirs: testsuite
build-depends:
- base >= 4.9.1 && < 4.15,
+ base >= 4.9.1 && < 4.16,
Cabal >= 1.8,
directory >= 1.3.0 && < 1.4,
filepath >= 1.4.1 && < 1.5,
diff --git a/src/runtime/haskell-bind/pgf2.cabal b/src/runtime/haskell-bind/pgf2.cabal
index 1d5f61991..83c990bf3 100644
--- a/src/runtime/haskell-bind/pgf2.cabal
+++ b/src/runtime/haskell-bind/pgf2.cabal
@@ -26,7 +26,7 @@ library
PGF2.Expr,
PGF2.Type
build-depends:
- base >= 4.9.1 && < 4.15,
+ base >= 4.9.1 && < 4.16,
containers >= 0.5.7 && < 0.7,
pretty >= 1.1.3 && < 1.2
default-language: Haskell2010
diff --git a/src/runtime/haskell/pgf.cabal b/src/runtime/haskell/pgf.cabal
index 41e67f6ae..cb5841a1c 100644
--- a/src/runtime/haskell/pgf.cabal
+++ b/src/runtime/haskell/pgf.cabal
@@ -15,7 +15,7 @@ library
default-language: Haskell2010
build-depends:
array >= 0.5.1 && < 0.6,
- base >= 4.9.1 && < 4.15,
+ base >= 4.9.1 && < 4.16,
bytestring >= 0.10.8 && < 0.11,
containers >= 0.5.7 && < 0.7,
ghc-prim >= 0.5.0 && < 0.7,
diff --git a/stack-ghc9.0.2.yaml b/stack-ghc9.0.2.yaml
new file mode 100644
index 000000000..c8f88a134
--- /dev/null
+++ b/stack-ghc9.0.2.yaml
@@ -0,0 +1,14 @@
+resolver: lts-19.6
+
+extra-deps:
+# - network-2.6.3.6
+# - httpd-shed-0.4.0.3
+# - cgi-3001.5.0.0@sha256:3d1193a328d5f627a021a0ef3927c1ae41dd341e32dba612fed52d0e3a6df056,2990
+# - json-0.10@sha256:d9fc6b07ce92b8894825a17d2cf14799856767eb30c8bf55962baa579207d799,3210
+# - multipart-0.2.0@sha256:b8770e3ff6089be4dd089a8250894b31287cca671f3d258190a505f9351fa8a9,1084
+
+# flags:
+# gf:
+# c-runtime: true
+# extra-lib-dirs:
+# - /usr/local/lib