Skip to content

Commit 937f801

Browse files
committed
Merge branch 'master' into parse-cabal-project-parsec
2 parents c0c20e1 + fb1678b commit 937f801

File tree

837 files changed

+90457
-71632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

837 files changed

+90457
-71632
lines changed

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 2023
2+
########################################
3+
4+
# Format the source with fourmolu
5+
10a14397e7295f79bb65ff505e52895f4864270a
6+
c7a5ac671338998395c1d12f04a0f9190d89e3af
7+
9985a2c27b1b292ca50489cf439193a8caa1249c
8+
19
# 2022
210
########################################
311

@@ -33,3 +41,4 @@ b0333ec5b73ba8f7a18223b203d999b38c75281d
3341

3442
# Move source files under 'src/'.
3543
52d506bb4e25489f40cb5eb594dda5595aeb93ed
44+

.githooks/pre-push

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
set -euxo pipefail
4+
5+
if [[ $(uname -s) != "Linux" ]]
6+
then
7+
PROCS=$(sysctl -n hw.logicalcpu)
8+
else
9+
PROCS=$(nproc)
10+
fi
11+
12+
if which fourmolu > /dev/null ; then
13+
find Cabal Cabal-syntax cabal-install -name '*.hs' -print0 \
14+
! -path Cabal-syntax/src/Distribution/Fields/Lexer.hs \
15+
! -path Cabal-syntax/src/Distribution/SPDX/LicenseExceptionId.hs \
16+
! -path Cabal-syntax/src/Distribution/SPDX/LicenseId.hs \
17+
! -path Cabal/src/Distribution/Simple/Build/Macros/Z.hs \
18+
! -path Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs \
19+
| xargs -P "${PROCS}" -I {} fourmolu -q --mode check {}
20+
else
21+
echo "Fourmolu not found, aborting."
22+
exit 1
23+
fi

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
---
33
Please include the following checklist in your PR:
44

5-
* [ ] Patches conform to the [coding conventions](https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#conventions).
5+
* [ ] Patches conform to the [coding conventions](https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#other-conventions).
66
* [ ] Any changes that could be relevant to users [have been recorded in the changelog](https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#changelog).
77
* [ ] The documentation has been updated, if necessary.
8+
* [ ] Include [manual QA notes](https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#qa-notes) if your PR relates to cabal-install.
89

9-
Please also shortly describe how you tested your change. Bonus points for added tests!
10+
Bonus points for added automated tests!

.github/workflows/bootstrap.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest]
22-
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.3", "9.4.4"]
22+
ghc: ["8.10.7", "9.0.2", "9.2.7", "9.4.4"]
2323
include:
2424
- os: macos-latest
25-
ghc: "9.2.3"
25+
ghc: "9.2.7"
2626
name: Bootstrap ${{ matrix.os }} ghc-${{ matrix.ghc }}
2727
runs-on: ${{ matrix.os }}
2828
steps:

.github/workflows/linting.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["master"]
7+
8+
jobs:
9+
fourmolu:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: haskell-actions/run-fourmolu@v8
14+
with:
15+
pattern: |
16+
Cabal/**/*.hs
17+
Cabal-syntax/**/*.hs
18+
Cabal-install/**/*.hs
19+
!Cabal-syntax/src/Distribution/Fields/Lexer.hs
20+
!Cabal-syntax/src/Distribution/SPDX/LicenseExceptionId.hs
21+
!Cabal-syntax/src/Distribution/SPDX/LicenseId.hs
22+
!Cabal/src/Distribution/Simple/Build/Macros/Z.hs
23+
!Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs

.github/workflows/quick-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Update Hackage index
4848
run: cabal v2-update
4949
- name: Install alex
50-
run: cabal v2-install alex --constraint='alex ==3.2.6'
50+
run: cabal v2-install alex --constraint='alex ==3.2.7.3'
5151
- uses: actions/checkout@v3
5252
- name: Regenerate files
5353
run: |

0 commit comments

Comments
 (0)