From 3410ccb06c8985b6b32748ca19cfdb01a294d8a4 Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Tue, 31 Mar 2026 15:24:46 +0100 Subject: [PATCH 1/2] Test external commands with nightly GHC It suffices to test the nightly on one platform, in the sdist test. Fixes #231 --- .github/workflows/debugger.yaml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/debugger.yaml b/.github/workflows/debugger.yaml index 7b09f50..530186a 100644 --- a/.github/workflows/debugger.yaml +++ b/.github/workflows/debugger.yaml @@ -70,16 +70,18 @@ jobs: # Tests run on the distributed sdist to catch packaging issues. build-n-test-haskell-debugger: - name: Build and Run Tests on Sdist + name: Build and Run Tests on Sdist (GHC ${{ matrix.version }}) needs: sdist-haskell-debugger runs-on: ubuntu-latest # just one is fine here, we test more machines on the checkout continue-on-error: ${{ inputs.is-release == false }} strategy: matrix: - version: [9.14.1] + version: [9.14.1, 10.1.20260422] include: - channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/develop/ghcup-prereleases-0.0.9.yaml version: 9.14.1 + - channel: https://gitlab.haskell.org/ghc/ghcup-metadata/-/raw/updates/ghcup-nightlies-0.0.7.yaml + version: 10.1.20260422 steps: - uses: actions/checkout@v4 with: @@ -115,25 +117,31 @@ jobs: (cd ${{ runner.temp }}/dist && tar xzf "haskell-debugger-view-${{env.haskellDebuggerViewVersion}}.tar.gz" && mv "haskell-debugger-view-${{env.haskellDebuggerViewVersion}}" "haskell-debugger-${{env.haskellDebuggerVersion}}/haskell-debugger-view") (cd ${{ runner.temp }}/dist/haskell-debugger-${{env.haskellDebuggerVersion}} && echo 'packages: . ./haskell-debugger-view' > cabal.project) + - name: Configure head.hackage for nightly + if: matrix.version == '10.1.20260422' + working-directory: ${{ runner.temp }}/dist/haskell-debugger-${{ env.haskellDebuggerVersion }} + run: | + curl --proto '=https' --tlsv1.2 -fsSL https://ghc.gitlab.haskell.org/head.hackage/cabal.project >> cabal.project.local + echo 'constraints: hashable == 1.4.7.0' >> cabal.project.local + cabal update + - name: Build and Run tests run: | echo "Using haskell-debugger-view from hackage: ${{env.USE_HASKELL_DEBUGGER_VIEW_FROM_HACKAGE}}" cd ${{ runner.temp }}/dist/haskell-debugger-${{env.haskellDebuggerVersion}} - cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell --ghc-options=-Werror + cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,ghc-internal,ghc-prim,template-haskell --ghc-options=-Werror # Tests run on the git checkout build-n-more-test-haskell-debugger: - name: Build and Run Tests on checkout (${{ matrix.runner }}) + name: Build and Run Tests on checkout (${{ matrix.runner }}, GHC ${{ matrix.version }}) runs-on: ${{ matrix.runner }} # Run all jobs in the matrix to the end (IF RELEASE, STOP ON FAILURE) continue-on-error: ${{ inputs.is-release == false }} strategy: matrix: runner: [ubuntu-latest, macOS-latest] # windows-latest is broken, see #246 - version: [9.14.1] #, latest-nightly] disable nightly while its broken + version: [9.14.1] include: - # - channel: https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml - # version: latest-nightly - channel: https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/develop/ghcup-prereleases-0.0.9.yaml version: 9.14.1 steps: @@ -192,7 +200,7 @@ jobs: shell: bash run: | if [ "$RUNNER_OS" == "Windows" ]; then - cabal run haskell-debugger-test --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell + cabal run haskell-debugger-test --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,template-haskell else - cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,base,template-haskell + cabal run haskell-debugger-test --enable-executable-dynamic --allow-newer=ghc-bignum,containers,time,ghc,ghci,base,template-haskell fi From 0b88c980c7324bec99618523ef25fd266f9735ab Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Tue, 28 Apr 2026 15:48:41 +0100 Subject: [PATCH 2/2] cabal: Allow 10.1 in ghc version bounds --- haskell-debugger.cabal | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/haskell-debugger.cabal b/haskell-debugger.cabal index bbfad01..7dc2d56 100644 --- a/haskell-debugger.cabal +++ b/haskell-debugger.cabal @@ -119,11 +119,11 @@ library default-extensions: CPP build-depends: base >= 4.22 && < 5, - ghc >= 9.14 && < 9.16, ghci >= 9.14 && < 9.16, - ghc-boot-th >= 9.14 && < 9.16, - ghc-boot >= 9.14 && < 9.16, - ghc-experimental >= 9.1401 && < 9.1600, - ghc-heap >= 9.14 && < 9.16, + ghc >= 9.14 && < 10.2, ghci >= 9.14 && < 10.2, + ghc-boot-th >= 9.14 && < 10.2, + ghc-boot >= 9.14 && < 10.2, + ghc-experimental >= 9.1401 && < 10.200, + ghc-heap >= 9.14 && < 10.2, array >= 0.5.8 && < 0.6, containers >= 0.7 && < 0.9, mtl >= 2.3 && < 3,