on test help sign in
ormolu/format.sh
14 lines 361 B history raw
1#!/usr/bin/env nix-shell
2#!nix-shell default.nix -A dev.withOrmolu -i bash --pure
3#
4# Format Ormolu using current version of Ormolu.
6set -e
8export LANG="C.UTF-8"
10cabal format
12ormolu -m inplace $(find app -type f -name "*.hs")
13ormolu -m inplace $(find src -type f \( -name "*.hs" -o -name "*.hs-boot" \))
14ormolu -m inplace $(find tests -type f -name "*.hs")