Skip to content

Commit

Permalink
feat: wrapper script for stylish-haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
flhorizon committed Sep 3, 2022
1 parent 064f9dc commit 8a8b552
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/format-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# stack install stylish-haskell
# or grab a release at https://github.com/haskell/stylish-haskell/releases

src_dir="$(realpath $(dirname $0))/.."
config_file="${src_dir}/.stylish-haskell.yaml"
dirs="$(echo ${src_dir}/{benchmarks,src,test})"

stylish-haskell \
--config "$config_file" \
--inplace \
--verbose \
$(find ${dirs} -type f -name '*.hs')

0 comments on commit 8a8b552

Please sign in to comment.