Skip to content

Commit

Permalink
Require building with singletons-base-3.3/GHC 9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Oct 13, 2023
1 parent 9623f5f commit b05a90c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.15.20230312
# version: 0.17.20231010
#
# REGENDATA ("0.15.20230312",["github","cabal.project"])
# REGENDATA ("0.17.20231010",["github","cabal.project"])
#
name: Haskell-CI
on:
Expand All @@ -28,9 +28,9 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.6.1
- compiler: ghc-9.8.1
compilerKind: ghc
compilerVersion: 9.6.1
compilerVersion: 9.8.1
setup-method: ghcup
allow-failure: false
fail-fast: false
Expand All @@ -40,7 +40,7 @@ jobs:
apt-get update
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
Expand All @@ -55,10 +55,12 @@ jobs:
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
HCDIR=/opt/$HCKIND/$HCVER
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -109,8 +111,8 @@ jobs:
- name: install cabal-plan
run: |
mkdir -p $HOME/.cabal/bin
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3.0/cabal-plan-0.7.3.0-x86_64-linux.xz > cabal-plan.xz
echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
rm -f cabal-plan.xz
chmod a+x $HOME/.cabal/bin/cabal-plan
Expand Down
6 changes: 3 additions & 3 deletions logical-foundations/logical-foundations.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ category: Dependent Types
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
tested-with: GHC == 9.6.1
tested-with: GHC == 9.8.1

source-repository head
type: git
Expand All @@ -37,9 +37,9 @@ library
SF.LF.ImpC
other-modules: SF.LF.Axiom
SF.LF.FunExt
build-depends: base >= 4.18 && < 4.19
build-depends: base >= 4.19 && < 4.20
, eliminators >= 0.9 && < 0.10
, singletons-base >= 3.2 && < 3.3
, singletons-base >= 3.3 && < 3.4
, singleton-nats >= 0.4.2 && < 0.5
, text
hs-source-dirs: src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ category: Dependent Types
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
tested-with: GHC == 9.6.1
tested-with: GHC == 9.8.1

source-repository head
type: git
Expand All @@ -23,9 +23,9 @@ source-repository head

library
exposed-modules: SF.VFA.Perm
build-depends: base >= 4.18 && < 4.19
build-depends: base >= 4.19 && < 4.20
, logical-foundations >= 0.1 && < 0.2
, singletons-base >= 3.2 && < 3.3
, singletons-base >= 3.3 && < 3.4
hs-source-dirs: src
default-language: GHC2021
ghc-options: -Wall -Wcompat -Wno-unticked-promoted-constructors -fenable-th-splice-warnings

0 comments on commit b05a90c

Please sign in to comment.