Skip to content

Commit db0d793

Browse files
authored
Merge pull request #314 from mrd/fix-stack
Stack at LTS-23.27, Cabal builds under GHC 9.0 thru 9.12
2 parents 0a053f1 + e9b6aeb commit db0d793

File tree

5 files changed

+50
-43
lines changed

5 files changed

+50
-43
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
# relative paths are relative to the project directory
2323
- name: Cache Stack build artifacts (user + project)
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: |
2727
~/.stack
@@ -81,15 +81,15 @@ jobs:
8181
8282
- name: Setup Haskell build environment
8383
id: setup-haskell-build-env
84-
uses: haskell/actions/setup@v2
84+
uses: haskell-actions/setup@v2
8585
with:
8686
ghc-version: ${{ matrix.ghc }}
87-
cabal-version: ${{ matrix.cabal }}
87+
cabal-version: 'latest'
8888

89-
- run: cabal freeze
89+
- run: cabal freeze --enable-tests
9090

9191
- name: Cache Cabal build artifacts
92-
uses: actions/cache@v2
92+
uses: actions/cache@v4
9393
with:
9494
path: |
9595
${{ steps.setup-haskell-build-env.outputs.cabal-store }}
@@ -99,7 +99,7 @@ jobs:
9999
${{ runner.os }}-cabal-${{ matrix.ghc }}
100100
101101
- name: Test
102-
run: cabal test --test-show-details=streaming
102+
run: cabal test --enable-tests --test-show-details=streaming
103103
env:
104104
HSPEC_OPTIONS: --color
105105

@@ -118,15 +118,15 @@ jobs:
118118

119119
- name: Setup Haskell build environment
120120
id: setup-haskell-build-env
121-
uses: haskell/actions/setup@v2
121+
uses: haskell-actions/setup@v2
122122
with:
123123
ghc-version: ${{ matrix.ghc }}
124-
cabal-version: ${{ matrix.cabal }}
124+
cabal-version: 'latest'
125125

126-
- run: cabal freeze
126+
- run: cabal freeze --enable-tests
127127

128128
- name: Cache Cabal build artifacts
129-
uses: actions/cache@v2
129+
uses: actions/cache@v4
130130
with:
131131
path: |
132132
${{ steps.setup-haskell-build-env.outputs.cabal-store }}
@@ -139,7 +139,7 @@ jobs:
139139
run: cabal install
140140

141141
- name: Test
142-
run: cabal test --test-show-details=streaming
142+
run: cabal test --enable-tests --test-show-details=streaming
143143
env:
144144
HSPEC_OPTIONS: --color
145145

@@ -166,15 +166,15 @@ jobs:
166166

167167
- name: Setup Haskell build environment
168168
id: setup-haskell-build-env
169-
uses: haskell/actions/setup@v2
169+
uses: haskell-actions/setup@v2
170170
with:
171171
ghc-version: ${{ matrix.ghc }}
172-
cabal-version: ${{ matrix.cabal }}
172+
cabal-version: 'latest'
173173

174-
- run: cabal freeze
174+
- run: cabal freeze --enable-tests
175175

176176
- name: Cache Cabal build artifacts
177-
uses: actions/cache@v2
177+
uses: actions/cache@v4
178178
with:
179179
path: |
180180
${{ steps.setup-haskell-build-env.outputs.cabal-store }}
@@ -187,7 +187,7 @@ jobs:
187187
run: cabal install
188188

189189
- name: Test
190-
run: cabal test --test-show-details=streaming
190+
run: cabal test --enable-tests --test-show-details=streaming
191191
env:
192192
HSPEC_OPTIONS: --color
193193

@@ -197,3 +197,10 @@ jobs:
197197
path: "C:/cabal/bin/${{ env.EXE_NAME }}.exe"
198198
name: ${{ env.EXE_NAME }}-windows-ghc-${{ matrix.ghc }}-cabal-${{ github.sha }}.exe
199199
if-no-files-found: error
200+
201+
- name: Upload cabal build logs
202+
if: failure()
203+
uses: actions/upload-artifact@v4
204+
with:
205+
name: cabal-build-logs
206+
path: C:\cabal\logs\

fortran-src.cabal

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.38.0.
3+
-- This file has been generated from package.yaml by hpack version 0.38.1.
44
--
55
-- see: https://github.com/sol/hpack
66

@@ -20,7 +20,7 @@ license: Apache-2.0
2020
license-file: LICENSE
2121
build-type: Simple
2222
tested-with:
23-
GHC >= 9.0
23+
GHC == 9.0, GHC == 9.2, GHC == 9.4, GHC == 9.6, GHC == 9.8, GHC == 9.10, GHC == 9.12
2424
extra-source-files:
2525
README.md
2626
CHANGELOG.md
@@ -187,7 +187,7 @@ library
187187
build-depends:
188188
GenericPretty >=1.2.2 && <2
189189
, array ==0.5.*
190-
, base >=4.6 && <5
190+
, base >=4.6 && <4.22
191191
, binary >=0.8.3.0 && <0.11
192192
, bytestring >=0.10 && <0.13
193193
, containers >=0.5 && <0.7
@@ -199,9 +199,9 @@ library
199199
, mtl >=2.2 && <3
200200
, pretty >=1.1 && <2
201201
, process >=1.2.0.0
202-
, singletons ==3.0.*
203-
, singletons-base >=3.0 && <3.4
204-
, singletons-th >=3.0 && <3.4
202+
, singletons >=3.0 && <3.6
203+
, singletons-base >=3.0 && <3.6
204+
, singletons-th >=3.0 && <3.6
205205
, temporary >=1.2 && <1.4
206206
, text >=1.2 && <2.2
207207
, uniplate >=1.6 && <2
@@ -250,7 +250,7 @@ executable fortran-src
250250
build-depends:
251251
GenericPretty >=1.2.2 && <2
252252
, array ==0.5.*
253-
, base >=4.6 && <5
253+
, base >=4.6 && <4.22
254254
, binary >=0.8.3.0 && <0.11
255255
, bytestring >=0.10 && <0.13
256256
, containers >=0.5 && <0.7
@@ -263,9 +263,9 @@ executable fortran-src
263263
, mtl >=2.2 && <3
264264
, pretty >=1.1 && <2
265265
, process >=1.2.0.0
266-
, singletons ==3.0.*
267-
, singletons-base >=3.0 && <3.4
268-
, singletons-th >=3.0 && <3.4
266+
, singletons >=3.0 && <3.6
267+
, singletons-base >=3.0 && <3.6
268+
, singletons-th >=3.0 && <3.6
269269
, temporary >=1.2 && <1.4
270270
, text >=1.2 && <2.2
271271
, uniplate >=1.6 && <2
@@ -348,7 +348,7 @@ test-suite spec
348348
GenericPretty >=1.2.2 && <2
349349
, QuickCheck >=2.10 && <2.15
350350
, array ==0.5.*
351-
, base >=4.6 && <5
351+
, base >=4.6 && <4.22
352352
, binary >=0.8.3.0 && <0.11
353353
, bytestring >=0.10 && <0.13
354354
, containers >=0.5 && <0.7
@@ -362,9 +362,9 @@ test-suite spec
362362
, mtl >=2.2 && <3
363363
, pretty >=1.1 && <2
364364
, process >=1.2.0.0
365-
, singletons ==3.0.*
366-
, singletons-base >=3.0 && <3.4
367-
, singletons-th >=3.0 && <3.4
365+
, singletons >=3.0 && <3.6
366+
, singletons-base >=3.0 && <3.6
367+
, singletons-th >=3.0 && <3.6
368368
, temporary >=1.2 && <1.4
369369
, text >=1.2 && <2.2
370370
, uniplate >=1.6 && <2

package.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: >-
88
analysis, a renamer, and type analysis. For example usage, see the
99
@<https://hackage.haskell.org/package/camfort CamFort>@ project, which uses
1010
fortran-src as its front end.
11-
tested-with: GHC >= 9.0
11+
tested-with: GHC == 9.0, GHC == 9.2, GHC == 9.4, GHC == 9.6, GHC == 9.8, GHC == 9.10, GHC == 9.12
1212
github: camfort/fortran-src
1313
bug-reports: https://github.com/camfort/fortran-src/issues
1414
author: [Mistral Contrastin, Matthew Danish, Dominic Orchard, Andrew Rice]
@@ -80,7 +80,7 @@ ghc-options:
8080
#- -Werror # appears bad to do in distribution, can be useful for development
8181

8282
dependencies:
83-
- base >=4.6 && <5
83+
- base >=4.6 && <4.22
8484
- mtl >=2.2 && <3
8585
- array >=0.5 && <0.6
8686
- uniplate >=1.6 && <2
@@ -99,11 +99,11 @@ dependencies:
9999
- either ^>=5.0.1.1
100100
- process >= 1.2.0.0
101101

102-
- singletons >= 3.0 && < 3.1
102+
- singletons >= 3.0 && < 3.6
103103

104-
# 3.0 = GHC 9.0, 3.1 = GHC 9.2, 3.1.1 = GHC 9.4, 3.2 = GHC 9.6, 3.3 = GHC 9.8
105-
- singletons-th >= 3.0 && < 3.4
106-
- singletons-base >= 3.0 && < 3.4
104+
# 3.0 = GHC 9.0, 3.1 = GHC 9.2, 3.1.1 = GHC 9.4, 3.2 = GHC 9.6, 3.3 = GHC 9.8, 3.5 = GHC 9.10
105+
- singletons-th >= 3.0 && < 3.6
106+
- singletons-base >= 3.0 && < 3.6
107107

108108
library:
109109
source-dirs: src

stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-20.01
1+
resolver: lts-23.27
22
packages:
3-
- '.'
3+
- '.'
44
save-hackage-creds: false

stack.yaml.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This file was autogenerated by Stack.
22
# You should not edit this file by hand.
33
# For more information, please see the documentation at:
4-
# https://docs.haskellstack.org/en/stable/lock_files
4+
# https://docs.haskellstack.org/en/stable/topics/lock_files
55

66
packages: []
77
snapshots:
88
- completed:
9-
sha256: b73b2b116143aea728c70e65c3239188998bac5bc3be56465813dacd74215dc5
10-
size: 648424
11-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/1.yaml
12-
original: lts-20.1
9+
sha256: 069c8189232279d04bd107557d3a62132c04ae5ce3c710649e6b40f67f10b9d5
10+
size: 684285
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/27.yaml
12+
original: lts-23.27

0 commit comments

Comments
 (0)