mirror of
https://github.com/google/ormolu.git
synced 2024-10-26 08:31:36 +03:00
15 lines
361 B
Bash
Executable File
15 lines
361 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell default.nix -A dev.withOrmolu -i bash --pure
|
|
#
|
|
# Format Ormolu using current version of Ormolu.
|
|
|
|
set -e
|
|
|
|
export LANG="C.UTF-8"
|
|
|
|
cabal format
|
|
|
|
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")
|