1
1
mirror of https://github.com/google/ormolu.git synced 2024-09-11 08:05:24 +03:00
ormolu/format.sh
2020-04-22 14:47:09 +02:00

13 lines
343 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell default.nix -A withOrmolu -i bash --pure
#
# Format Ormolu using current version of Ormolu.
set -e
export LANG="C.UTF-8"
ormolu -m inplace $(find app -type f -name "*.hs")
ormolu -m inplace $(find src -type f \( -name "*.hs" -o -name "*.hs-boot" \))
ormolu -m inplace $(find tests -type f -name "*.hs")