Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport/0.12.1/417 #418

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog hie-bios

## 2023-11-13 - 0.12.1

* 9.8 support [#417](https://github.com/haskell/hie-bios/pull/417)

## 2023-03-13 - 0.12.0

* 9.6 support [#392](https://github.com/haskell/hie-bios/pull/392)
Expand Down
14 changes: 7 additions & 7 deletions hie-bios.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Cabal-Version: 2.2
Name: hie-bios
Version: 0.12.0
Version: 0.12.1
Author: Matthew Pickering <[email protected]>
Maintainer: Matthew Pickering <[email protected]>
License: BSD-3-Clause
Expand Down Expand Up @@ -150,24 +150,24 @@ Library
autogen-modules: Paths_hie_bios
Build-Depends:
base >= 4.8 && < 5,
aeson >= 1.4.4 && < 2.2,
aeson >= 1.4.4 && < 2.3,
base16-bytestring >= 0.1.1 && < 1.1,
bytestring >= 0.10.8 && < 0.12,
bytestring >= 0.10.8 && < 0.13,
co-log-core ^>= 0.3.0,
deepseq >= 1.4.3 && < 1.5,
deepseq >= 1.4.3 && < 1.6,
exceptions ^>= 0.10,
cryptohash-sha1 >= 0.11.100 && < 0.12,
directory >= 1.3.0 && < 1.4,
filepath >= 1.4.1 && < 1.5,
time >= 1.8.0 && < 1.13,
extra >= 1.6.14 && < 1.8,
prettyprinter ^>= 1.6 || ^>= 1.7.0,
ghc >= 8.6.1 && < 9.7,
ghc >= 8.6.1 && < 9.9,
transformers >= 0.5.2 && < 0.7,
temporary >= 1.2 && < 1.4,
template-haskell,
text >= 1.2.3 && < 2.1,
unix-compat >= 0.5.1 && < 0.7,
text >= 1.2.3 && < 2.2,
unix-compat >= 0.5.1 && < 0.8,
unordered-containers >= 0.2.9 && < 0.3,
yaml >= 0.10.0 && < 0.12,
file-embed >= 0.0.11 && < 1,
Expand Down
17 changes: 15 additions & 2 deletions src/HIE/Bios/Ghc/Gap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
#endif

#if __GLASGOW_HASKELL__ >= 806 && __GLASGOW_HASKELL__ < 810
import HsExtension (GhcTc)

Check warning on line 98 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, ubuntu-latest)

The import of ‘HsExtension’ is redundant

Check warning on line 98 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, windows-latest)

The import of ‘HsExtension’ is redundant

Check warning on line 98 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, macOS-latest)

The import of ‘HsExtension’ is redundant
import HsExpr (MatchGroup, MatchGroupTc(..))

Check warning on line 99 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, ubuntu-latest)

The import of ‘HsExpr’ is redundant

Check warning on line 99 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, windows-latest)

The import of ‘HsExpr’ is redundant

Check warning on line 99 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4, macOS-latest)

The import of ‘HsExpr’ is redundant
#elif __GLASGOW_HASKELL__ >= 804 && __GLASGOW_HASKELL__ < 810
import HsExtension (GhcTc)
import HsExpr (MatchGroup)
Expand Down Expand Up @@ -147,17 +147,22 @@
import qualified GHC.Utils.Ppr as Ppr
#endif
#if __GLASGOW_HASKELL__ >= 900
import GHC.Unit.Types (UnitId)

Check warning on line 150 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.2.7, ubuntu-latest)

The import of ‘GHC.Unit.Types’ is redundant

Check warning on line 150 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.2.7, macOS-latest)

The import of ‘GHC.Unit.Types’ is redundant

Check warning on line 150 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.2.7, windows-latest)

The import of ‘GHC.Unit.Types’ is redundant
#endif

#if __GLASGOW_HASKELL__ >= 900
import qualified GHC.Driver.Main as G

Check warning on line 154 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.4.4, ubuntu-latest)

The qualified import of ‘GHC.Driver.Main’ is redundant

Check warning on line 154 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.4.4, macOS-latest)

The qualified import of ‘GHC.Driver.Main’ is redundant

Check warning on line 154 in src/HIE/Bios/Ghc/Gap.hs

View workflow job for this annotation

GitHub Actions / build (9.4.4, windows-latest)

The qualified import of ‘GHC.Driver.Main’ is redundant
import qualified GHC.Driver.Make as G
#else
import qualified HscMain as G
import qualified GhcMake as G
#endif

#if __GLASGOW_HASKELL__ >= 907
import GHC.Types.Error (mkUnknownDiagnostic, Messages)
import GHC.Driver.Errors.Types (DriverMessage)
#endif

ghcVersion :: String
ghcVersion = VERSION_ghc

Expand All @@ -169,7 +174,10 @@
homeUnitId_ = homeUnitId
#endif

#if __GLASGOW_HASKELL__ >= 904
#if __GLASGOW_HASKELL__ >= 907
load' :: GhcMonad m => Maybe G.ModIfaceCache -> LoadHowMuch -> Maybe Messager -> ModuleGraph -> m SuccessFlag
load' mhmi_cache how_much = G.load' mhmi_cache how_much mkUnknownDiagnostic
#elif __GLASGOW_HASKELL__ >= 904
load' :: GhcMonad m => Maybe G.ModIfaceCache -> LoadHowMuch -> Maybe Messager -> ModuleGraph -> m SuccessFlag
load' = G.load'
#else
Expand Down Expand Up @@ -474,7 +482,12 @@
=> Logger
-> DynFlags
-> [G.Located String]
-> m (DynFlags, [G.Located String], [CmdLine.Warn])
-> m (DynFlags, [G.Located String]
#if __GLASGOW_HASKELL__ >= 907
, Messages DriverMessage)
#else
, [CmdLine.Warn])
#endif
#if __GLASGOW_HASKELL__ >= 902
parseDynamicFlags = G.parseDynamicFlags
#else
Expand Down
Loading