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

Support GHC 9.10 #494

Merged
merged 3 commits into from
Dec 3, 2024
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
17 changes: 11 additions & 6 deletions .github/workflows/cabal-ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
on:
- push
- pull_request
name: cabal build with ghc 9.6
name: cabal build
jobs:
runhaskell:
name: cabal test
runs-on: ubuntu-latest
strategy:
matrix:
version:
- ghc: 9.10.1
cabal: 3.12.1.0
steps:
- uses: actions/checkout@v4.2.0
with:
submodules: true
- uses: haskell-actions/setup@dd344bc1cec854a369df8814ce17ef337d6e6170 # v2.7.6
with:
ghc-version: '9.6.3'
cabal-version: '3.10.2.0'
- run: cabal build --dependencies-only --project-file ghc96.cabal.project all
- run: cabal build --project-file ghc96.cabal.project all
- run: cabal test --project-file ghc96.cabal.project all
ghc-version: ${{ matrix.version.ghc }}
cabal-version: ${{ matrix.version.cabal }}
- run: cabal build --dependencies-only --project-file ghc${{ matrix.version.ghc }}.cabal.project all
- run: cabal build --project-file ghc${{ matrix.version.ghc }}.cabal.project all
- run: cabal test --project-file ghc${{ matrix.version.ghc }}.cabal.project all
6 changes: 3 additions & 3 deletions discrimination-ieee754/discrimination-ieee754.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -31,7 +31,7 @@ library
hs-source-dirs:
src
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, contravariant >=1.3 && <1.6
, data-binary-ieee754 ==0.4.*
, discrimination >=0.3 && <0.6
Expand All @@ -46,7 +46,7 @@ test-suite test
test
build-depends:
QuickCheck
, base >=4.10 && <4.20
, base >=4.10 && <4.21
, contravariant >=1.3 && <1.6
, data-binary-ieee754 ==0.4.*
, discrimination >=0.3 && <0.6
Expand Down
2 changes: 1 addition & 1 deletion discrimination-ieee754/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license: BSD3
github: google/proto-lens/discrimination-ieee754

dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- data-binary-ieee754 >= 0.4 && < 0.5
- contravariant >= 1.3 && < 1.6
- discrimination >= 0.3 && < 0.6
Expand Down
10 changes: 10 additions & 0 deletions ghc9.10.1.cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
packages:
proto-lens
proto-lens-runtime
proto-lens-optparse

source-repository-package
type: git
location: https://github.com/google/ghc-source-gen
tag: 1f0ccfc5a236e349cd48c372deda373121cd9734

4 changes: 0 additions & 4 deletions ghc96.cabal.project

This file was deleted.

2 changes: 1 addition & 1 deletion proto-lens-arbitrary/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extra-source-files:

dependencies:
- proto-lens >= 0.4 && < 0.8
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- bytestring >= 0.10 && < 0.13
- containers >= 0.5 && < 0.8
- text >= 1.2 && < 2.2
Expand Down
4 changes: 2 additions & 2 deletions proto-lens-arbitrary/proto-lens-arbitrary.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -34,7 +34,7 @@ library
src
build-depends:
QuickCheck >=2.8 && <2.15
, base >=4.10 && <4.20
, base >=4.10 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, lens-family >=1.2 && <2.2
Expand Down
4 changes: 2 additions & 2 deletions proto-lens-discrimination/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ extra-source-files:

custom-setup:
dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- Cabal
- proto-lens-setup >= 0.4 && < 0.5

build-tools: proto-lens-protoc:proto-lens-protoc

dependencies:
- base >= 4.11 && < 4.20
- base >= 4.11 && < 4.21
- bytestring >= 0.10 && < 0.13
- contravariant >= 1.3 && < 1.6
- containers >= 0.5 && < 0.8
Expand Down
8 changes: 4 additions & 4 deletions proto-lens-discrimination/proto-lens-discrimination.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -29,7 +29,7 @@ source-repository head
custom-setup
setup-depends:
Cabal
, base >=4.10 && <4.20
, base >=4.10 && <4.21
, proto-lens-setup ==0.4.*

library
Expand All @@ -46,7 +46,7 @@ library
build-tool-depends:
proto-lens-protoc:proto-lens-protoc
build-depends:
base >=4.11 && <4.20
base >=4.11 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, contravariant >=1.3 && <1.6
Expand Down Expand Up @@ -79,7 +79,7 @@ test-suite discrimination_test
build-depends:
HUnit >=1.3 && <1.7
, QuickCheck >=2.8 && <2.15
, base >=4.11 && <4.20
, base >=4.11 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, contravariant >=1.3 && <1.6
Expand Down
2 changes: 1 addition & 1 deletion proto-lens-optparse/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extra-source-files:

dependencies:
- proto-lens >= 0.1 && < 0.8
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- optparse-applicative >= 0.13 && < 0.19
- text >= 1.2 && < 2.2

Expand Down
4 changes: 2 additions & 2 deletions proto-lens-optparse/proto-lens-optparse.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -33,7 +33,7 @@ library
hs-source-dirs:
src
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, optparse-applicative >=0.13 && <0.19
, proto-lens >=0.1 && <0.8
, text >=1.2 && <2.2
Expand Down
6 changes: 3 additions & 3 deletions proto-lens-protobuf-types/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ extra-source-files:

custom-setup:
dependencies:
- base >= 4.10 && < 4.20
- Cabal >= 3 && < 3.12
- base >= 4.10 && < 4.21
- Cabal >= 3 && < 3.13
- proto-lens-setup == 0.4.*

build-tools: proto-lens-protoc:proto-lens-protoc

dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- lens-family >= 1.2 && < 2.2
- proto-lens == 0.7.*
- proto-lens-runtime == 0.7.*
Expand Down
8 changes: 4 additions & 4 deletions proto-lens-protobuf-types/proto-lens-protobuf-types.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -39,8 +39,8 @@ source-repository head

custom-setup
setup-depends:
Cabal >=3 && <3.12
, base >=4.10 && <4.20
Cabal >=3 && <3.13
, base >=4.10 && <4.21
, proto-lens-setup ==0.4.*

library
Expand Down Expand Up @@ -101,7 +101,7 @@ library
build-tool-depends:
proto-lens-protoc:proto-lens-protoc
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, lens-family >=1.2 && <2.2
, proto-lens ==0.7.*
, proto-lens-runtime ==0.7.*
Expand Down
8 changes: 6 additions & 2 deletions proto-lens-protoc/app/Data/ProtoLens/Compiler/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import GHC.Hs (ideclName, ideclAs)
#else
import HsSyn (ideclName, ideclAs)
#endif
#if MIN_VERSION_ghc(9,2,0)
#if MIN_VERSION_ghc(9,10,0)
import GHC.Parser.Annotation (noAnn)
#elif MIN_VERSION_ghc(9,2,0)
import GHC.Parser.Annotation (EpAnn(EpAnnNotUsed), SrcSpanAnn'(SrcSpanAnn))
#endif
#if MIN_VERSION_ghc(9,0,0)
Expand Down Expand Up @@ -212,7 +214,9 @@ type ModifyImports = ImportDecl' -> ImportDecl'
reexported :: ModifyImports
reexported imp = imp { ideclName = noLoc m', ideclAs = Just m }
where
#if MIN_VERSION_ghc(9,2,0)
#if MIN_VERSION_ghc(9,10,0)
noLoc = SrcLoc.L noAnn
#elif MIN_VERSION_ghc(9,2,0)
noLoc = SrcLoc.L (SrcSpanAnn EpAnnNotUsed SrcLoc.noSrcSpan)
#else
noLoc = SrcLoc.noLoc
Expand Down
4 changes: 2 additions & 2 deletions proto-lens-protoc/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extra-source-files:
- Changelog.md

dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- filepath >= 1.4 && < 1.6

library:
Expand All @@ -32,7 +32,7 @@ executables:
dependencies:
- bytestring >= 0.10 && < 0.13
- containers >= 0.5 && < 0.8
- ghc >= 8.2 && < 9.9
- ghc >= 8.2 && < 9.11
- ghc-paths == 0.1.*
- ghc-source-gen >= 0.4 && < 0.5
- lens-family >= 1.2 && < 2.2
Expand Down
8 changes: 4 additions & 4 deletions proto-lens-protoc/proto-lens-protoc.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -34,7 +34,7 @@ library
hs-source-dirs:
src
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, filepath >=1.4 && <1.6
default-language: Haskell2010

Expand All @@ -57,11 +57,11 @@ executable proto-lens-protoc
hs-source-dirs:
app
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, filepath >=1.4 && <1.6
, ghc >=8.2 && <9.9
, ghc >=8.2 && <9.11
, ghc-paths ==0.1.*
, ghc-source-gen ==0.4.*
, lens-family >=1.2 && <2.2
Expand Down
2 changes: 1 addition & 1 deletion proto-lens-runtime/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extra-source-files:

library:
dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- bytestring >= 0.10 && < 0.13
- containers >= 0.5 && < 0.8
- deepseq >= 1.4 && <1.6
Expand Down
4 changes: 2 additions & 2 deletions proto-lens-runtime/proto-lens-runtime.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.22

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -53,7 +53,7 @@ library
, Lens.Family2.Unchecked as Data.ProtoLens.Runtime.Lens.Family2.Unchecked
, Text.Read as Data.ProtoLens.Runtime.Text.Read
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, deepseq >=1.4 && <1.6
Expand Down
4 changes: 2 additions & 2 deletions proto-lens-setup/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ extra-source-files:
library:
source-dirs: src
dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- bytestring >= 0.10 && < 0.13
- containers >= 0.5 && < 0.8
- Cabal >= 2.0 && < 3.12
- Cabal >= 2.0 && < 3.13
- deepseq >=1.4 && <1.6
- directory >= 1.2 && < 1.4
- filepath >= 1.4 && < 1.6
Expand Down
6 changes: 3 additions & 3 deletions proto-lens-setup/proto-lens-setup.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -68,8 +68,8 @@ library
hs-source-dirs:
src
build-depends:
Cabal >=2.0 && <3.12
, base >=4.10 && <4.20
Cabal >=2.0 && <3.13
, base >=4.10 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, deepseq >=1.4 && <1.6
Expand Down
2 changes: 1 addition & 1 deletion proto-lens/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ library:
- Data.ProtoLens.Encoding.Parser.Internal
- Data.ProtoLens.TextFormat.Parser
dependencies:
- base >= 4.10 && < 4.20
- base >= 4.10 && < 4.21
- bytestring >= 0.10 && < 0.13
- containers >= 0.5 && < 0.8
- deepseq >=1.4 && <1.6
Expand Down
4 changes: 2 additions & 2 deletions proto-lens/proto-lens.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
-- This file has been generated from package.yaml by hpack version 0.36.1.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -58,7 +58,7 @@ library
hs-source-dirs:
src
build-depends:
base >=4.10 && <4.20
base >=4.10 && <4.21
, bytestring >=0.10 && <0.13
, containers >=0.5 && <0.8
, deepseq >=1.4 && <1.6
Expand Down
Loading