Skip to content

Commit

Permalink
Repair unintentionally broken GHC 8.10.7 support (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgnezdo authored Jan 26, 2024
1 parent a758f8f commit d920e8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
10 changes: 5 additions & 5 deletions ghc-source-gen.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -156,11 +156,11 @@ 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
GHC.Driver.Session
GHC.Utils.Outputable
hs-source-dirs:
compat
default-language: Haskell2010
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions src/GHC/SourceGen/Module.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d920e8b

Please sign in to comment.