Skip to content

Commit

Permalink
Add notes about fourmolu formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
teggotic authored and extsoft committed Apr 10, 2023
1 parent a215ef7 commit e3670aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,16 @@ All other files in ["docs" directory](docs/) require manual corrections.
- bash: `source completions/git-elegant.bash`
- zsh: `source completions/_git-elegant`
2. run `git-elegant <some>` and press Tab twice

### Haskell code formatting
We use fourmolu as a formatting tool for haskell code.
Fourmolu works in pipeline fashion.
To reformat source code use:
```shell
$ git ls-files -z '*.hs' | xargs -0 fourmolu --mode inplace
```

To check if everything is formatted correctly, use:
```shell
$ fourmolu --mode check app src test
```

0 comments on commit e3670aa

Please sign in to comment.