Repair unintentionally broken GHC 8.10.7 support (#111)

This commit is contained in:
Greg Steuck 2024-01-26 08:48:27 -08:00 committed by GitHub
parent a758f8fe50
commit d920e8bd86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,9 @@
# Changelog for haskell-syntax
# 0.4.4.1
- Repair unintentionally broken GHC 8.10.7 support.
# 0.4.4.0
- Support GHC 9.6.

View File

@ -1,11 +1,11 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.6.
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
name: ghc-source-gen
version: 0.4.4.0
version: 0.4.4.1
synopsis: Constructs Haskell syntax trees for the GHC API.
description: @ghc-source-gen@ is a library for generating Haskell source code.
It uses the <https://hackage.haskell.org/package/ghc ghc> library
@ -62,6 +62,7 @@ library
build-depends:
base >=4.7 && <5
, ghc >=8.4 && <9.7
default-language: Haskell2010
if impl(ghc<8.10)
other-modules:
GHC.Hs
@ -75,7 +76,6 @@ library
GHC.Hs.Utils
hs-source-dirs:
compat
default-language: Haskell2010
if impl(ghc<9.0)
other-modules:
GHC.Hs.Type
@ -130,12 +130,12 @@ test-suite pprint_examples
, ghc-source-gen
, tasty >=1.0 && <1.5
, tasty-hunit ==0.10.*
default-language: Haskell2010
if impl(ghc<9.0)
other-modules:
GHC.Utils.Outputable
hs-source-dirs:
compat
default-language: Haskell2010
test-suite pprint_test
type: exitcode-stdio-1.0
@ -156,6 +156,7 @@ test-suite pprint_test
, ghc-source-gen
, tasty >=1.0 && <1.5
, tasty-hunit ==0.10.*
default-language: Haskell2010
if impl(ghc<9.0)
other-modules:
GHC.Driver.Monad
@ -163,4 +164,3 @@ test-suite pprint_test
GHC.Utils.Outputable
hs-source-dirs:
compat
default-language: Haskell2010

View File

@ -5,7 +5,7 @@
# https://developers.google.com/open-source/licenses/bsd
name: ghc-source-gen
version: 0.4.4.0
version: 0.4.4.1
github: "google/ghc-source-gen"
license: BSD3
author: "Judah Jacobson"

View File

@ -63,9 +63,7 @@ import GHC.Types.PkgQual (RawPkgQual(..))
import GHC.SourceGen.Syntax.Internal
import GHC.SourceGen.Name.Internal
import GHC.SourceGen.Lit.Internal (noSourceText)
#if MIN_VERSION_ghc(9,0,0)
import GHC.SourceGen.Name (unqual)
#endif
#if MIN_VERSION_ghc(9,4,0)
import GHC.SourceGen.Name (RdrNameStr, ModuleNameStr(unModuleNameStr), OccNameStr)
import GHC.Types.SourceText (SourceText(NoSourceText))