summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-04 13:12:29 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-04 13:13:12 +0100
commit19d86132a88f19a8578b6a640a8eefa3e856fdfb (patch)
tree45bf643df2679c5bd17755a7e39e6e6671264076 /tools
parente256c8ce1778ff6fbb2e8d59556d48fb3c53393d (diff)
Makefile: Separate refactor and reformat targets.
Removed tools/refactor.sh.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/refactor.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/refactor.sh b/tools/refactor.sh
deleted file mode 100755
index 40e3c964e..000000000
--- a/tools/refactor.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-cppdir=`stack path --dist-dir`/build/autogen
-for f in $*
-do
- echo "Applying hlint --refactor to $f"
- hlint --refactor -i --cpp-file=$cppdir/cabal_macros.h $f >/dev/null
- echo "Applying stylish-haskell to $f"
- stylish-haskell -i $f | perl -ne 'if (/./) { print "\n" x $n, $_; $n = 0 } else { $n++ }' >/dev/null
-done