summaryrefslogtreecommitdiffstats
path: root/bin/format
diff options
context:
space:
mode:
Diffstat (limited to 'bin/format')
-rwxr-xr-xbin/format6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/format b/bin/format
new file mode 100755
index 0000000..f61a3f1
--- /dev/null
+++ b/bin/format
@@ -0,0 +1,6 @@
+#!/usr/bin/env nix-shell
+#! nix-shell ../shell.nix -i bash
+set -xe
+find src -name \*.hs | xargs ormolu -m inplace
+nixpkgs-fmt *.nix
+cabal-fmt -i *.cabal \ No newline at end of file