1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-10-06 09:57:29 +03:00
ormolu/format.sh
Thomas BAGREL 1f63136d04 Operator chain overhaul
See the changelog for details.

Co-authored-by: Alexander Esgen <alexander.esgen@tweag.io>
Co-authored-by: Mark Karpov <mark.karpov@tweag.io>
2021-12-16 16:23:57 +01:00

17 lines
494 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell default.nix -A dev.cabalAndOrmolu -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-boot" -o -name "*.hs")
ormolu -m inplace $(find tests -type f -name "*.hs")
ormolu -m inplace $(find ormolu-live/src -type f -name "*.hs")
ormolu -m inplace $(find extract-hackage-info/src -type f -name "*.hs")