From 300e346a0ccba1b36807cfd89d6898f774a6fea8 Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Sat, 24 Aug 2024 15:51:19 +0800 Subject: [PATCH 1/2] Building ci --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..727f86a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Building + +on: + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + ghc: ['9.10', '9.8', '9.6', '9.4', '9.2', '9.0', '8.10', '8.8', '8.6', '8.4', '8.2', '8.0'] + os: ['ubuntu-latest', 'windows-latest'] + + name: Build on ${{ matrix.os }} with GHC ${{ matrix.ghc }} + + steps: + - uses: actions/checkout@v4 + - uses: haskell-actions/setup@v2 + with: + ghc-version: ${{ matrix.ghc }} + - run: cabal build From 9399614c5ef0e50fa03e0683a37e2dcb7ff1c5ac Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Sat, 24 Aug 2024 16:10:38 +0800 Subject: [PATCH 2/2] Import unsafeIndex from GHC.Arr instead of GHC.Ix --- Data/Array/Base.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Data/Array/Base.hs b/Data/Array/Base.hs index 6ed9236..dffc98d 100644 --- a/Data/Array/Base.hs +++ b/Data/Array/Base.hs @@ -47,10 +47,9 @@ import Foreign.C.Types import Foreign.StablePtr import Data.Char -import GHC.Arr ( STArray ) +import GHC.Arr ( STArray, unsafeIndex ) import qualified GHC.Arr as Arr import qualified GHC.Arr as ArrST -import GHC.Ix ( unsafeIndex ) import GHC.ST ( ST(..), runST ) import GHC.Base ( IO(..), divInt# ) import GHC.Exts