Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
dadd9ce3
Unverified
Commit
dadd9ce3
authored
9 months ago
by
Hécate
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Plain Diff
Merge branch '3.14' into mergify/bp/3.14/pr-10417
parents
2fd19d61
fa0c9608
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/whitespace.yml
+15
-1
15 additions, 1 deletion
.github/workflows/whitespace.yml
CONTRIBUTING.md
+3
-1
3 additions, 1 deletion
CONTRIBUTING.md
Makefile
+8
-0
8 additions, 0 deletions
Makefile
with
26 additions
and
2 deletions
.github/workflows/whitespace.yml
+
15
−
1
View file @
dadd9ce3
...
...
@@ -7,8 +7,22 @@ on:
jobs
:
whitespace
:
defaults
:
run
:
shell
:
bash
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
andreasabel/fix-whitespace-action@v1
-
run
:
|
# no longer using the action because apparently we're supposed to use the Makefile here
wget -q https://github.com/agda/fix-whitespace/releases/download/v0.1/fix-whitespace-0.1-linux.binary
mkdir -p "$HOME/.local/bin"
mv fix-whitespace-0.1-linux.binary "$HOME/.local/bin/fix-whitespace"
chmod +x "$HOME/.local/bin/fix-whitespace"
echo "$HOME/.local/bin" >> $GITHUB_PATH
-
run
:
make whitespace
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
3
−
1
View file @
dadd9ce3
...
...
@@ -191,7 +191,9 @@ Whitespace Conventions
We use automated whitespace convention checking. Violations can be fixed by
running
[
fix-whitespace
](
https://hackage.haskell.org/package/fix-whitespace
)
. If
you push a fix of a whitespace violation, please do so in a _separate commit_.
you push a fix of a whitespace violation, please do so in a _separate commit_. For convenience,
`make whitespace`
will show violations and
`make fix-whitespace`
will fix them, if the
`fix-whitespace`
utility is installed.
Other Conventions
-----------------
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
8
−
0
View file @
dadd9ce3
...
...
@@ -41,6 +41,14 @@ style-commit: ## Run the code styler on the previous commit
@
git diff
--name-only
HEAD
$(
COMMIT
)
Cabal Cabal-syntax cabal-install
\
|
grep
'.hs$$'
| xargs
-P
$(
PROCS
)
-I
{}
fourmolu
-q
-i
{}
.PHONY
:
whitespace
whitespace
:
##
Run fix-whitespace in check mode
fix-whitespace
--check
--verbose
.PHONY
:
fix-whitespace
fix-whitespace
:
##
Run fix-whitespace in fix mode
fix-whitespace
--verbose
# source generation: SPDX
SPDX_LICENSE_HS
:=
Cabal-syntax/src/Distribution/SPDX/LicenseId.hs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment