Skip to content

Commit 1199da0

Browse files
Fourmolu formatting in CI (#13)
* Started formatting work * Some fourmolu options * Add fourmolu to CI * Remove stray file
1 parent 81310df commit 1199da0

File tree

4 files changed

+9
-163
lines changed

4 files changed

+9
-163
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
run: |
5454
nix-shell --arg withoutDevTools true --run 'cabal test all --test-options "--xml=test-results.xml"'
5555
56+
- name: Formatting
57+
run: |
58+
nix-shell --arg withoutDevTools false --run './fmt.sh check'
59+
5660
- name: Upload build & test artifacts
5761
uses: actions/upload-artifact@v2
5862
with:

fmt.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/bash
2-
find . -type f -name *.hs | xargs -n1 fourmolu -i
2+
MODE=${1:-inplace}
3+
fourmolu -m $MODE -c $(find quickcheck-dynamic* -type f -name *.hs)
4+
exit $?

fourmolu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
indentation: 2
22
comma-style: leading # for lists, tuples etc. - can also be 'trailing'
3+
function-arrows: leading
34
record-brace-space: false # rec {x = 1} vs. rec{x = 1}
45
indent-wheres: false # 'false' means save space by only half-indenting the 'where' keyword
56
diff-friendly-import-export: true # 'false' uses Ormolu-style lists
67
respectful: true # don't be too opinionated about newlines etc.
78
haddock-style: single-line # '--' vs. '{-'
89
newlines-between-decls: 1 # number of newlines between top-level declarations
10+
-o: -XImportQualifiedPost

quickcheck-dynamic/src/Test/QuickCheck/DynamicLogic/Monad.hs

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)