Skip to content

Introduce fourmolu #1500

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### NOTE
# Run `git config blame.ignoreRevsFile .git-blame-ignore-revs`
# from the repository's root to tell `git blame` to ignore
# the commits below.

# 2025
########################################
# Format with fourmolu
ef19b2301d4155497a5a69d9d7a710413d92f2c7
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,19 @@ and improvements are always welcome.

## Formatting the code

We use `stylish-haskell` 0.14.6.0 for Haskell code formatting.
We use `fourmolu` for Haskell code formatting. See [tools.nix](./nix/tools.nix) for the `fourmolu` version used in CI.

Either enable editor integration or call the script used by CI itself:

```bash
./scripts/ci/run-stylish.sh
./scripts/ci/run-fourmolu.sh
```

When using Nix, you can use the following command, which will build and use
the right version of `stylish-haskell`.
the right version of `fourmolu`.

```bash
nix develop -c ./scripts/ci/run-stylish.sh
nix develop -c ./scripts/ci/run-fourmolu.sh
```

# Generating documentation and setting up hoogle
Expand Down
Loading