Skip to content

Commit

Permalink
9.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
zliu41 committed Dec 21, 2023
1 parent 8c1a2d8 commit f998bc6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["9.6.1", "9.4.5", "9.2.7"]
ghc: ["9.8.1", "9.6.3", "9.4.6", "9.2.8"]
env:
CONFIG: "--enable-tests --enable-benchmarks"
steps:
Expand Down
6 changes: 4 additions & 2 deletions apply-refact.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extra-source-files: CHANGELOG
, tests/examples/*.hs
, tests/examples/*.hs.refact
, tests/examples/*.hs.expected
tested-with: GHC==9.6.1, GHC==9.4.5, GHC==9.2.7
tested-with: GHC==9.8.1, GHC==9.6.3, GHC==9.4.6, GHC==9.2.8


source-repository head
Expand All @@ -35,7 +35,7 @@ library
build-depends: base >=4.16 && < 5
, refact >= 0.2
, ghc-boot-th
, ghc-exactprint ^>= 1.5.0 || ^>= 1.6.0 || ^>= 1.7.0
, ghc-exactprint ^>= 1.5.0 || ^>= 1.6.0 || ^>= 1.7.0 || ^>= 1.8.0
, containers >= 0.6.0.1 && < 0.7
, extra >= 1.7.3
, syb >= 0.7.1
Expand All @@ -45,6 +45,8 @@ library
, uniplate >= 1.6.13
, unix-compat >= 0.5.2
, directory >= 1.3
if (impl(ghc >= 9.8) && impl(ghc < 9.9))
build-depends: ghc ^>= 9.8
if (impl(ghc >= 9.6) && impl(ghc < 9.7))
build-depends: ghc ^>= 9.6
if (impl(ghc >= 9.4) && impl(ghc < 9.5))
Expand Down
4 changes: 3 additions & 1 deletion src/Refact/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ import GHC.Hs hiding (Pat, Stmt, parseModuleName)
import GHC.Hs hiding (Pat, Stmt)
#endif
import GHC.Parser.Header (getOptions)
#if MIN_VERSION_ghc(9,4,0)
#if MIN_VERSION_ghc(9,8,0)
import GHC.Types.Error (defaultDiagnosticOpts, getMessages)
#elif MIN_VERSION_ghc(9,4,0)
import GHC.Types.Error (getMessages)
#endif
import GHC.Types.Fixity ( Fixity(..) )
Expand Down
1 change: 1 addition & 0 deletions src/Refact/Fixity.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}

module Refact.Fixity (applyFixities) where
Expand Down

0 comments on commit f998bc6

Please sign in to comment.