mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 04:19:22 +03:00
19 lines
342 B
Plaintext
19 lines
342 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Usage: fmt-haskell
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
cd "${0%/*}/.."
|
||
|
|
||
|
echo "Formatting Haskell"
|
||
|
|
||
|
# FIXME: Avoid inplace (-i) modifications for now.
|
||
|
find pkg/hs -type f -name '*.hs' \
|
||
|
-exec ormolu --mode check \
|
||
|
-o '-XBangPatterns' \
|
||
|
-o '-XMagicHash' \
|
||
|
-o '-XTypeApplications' \
|
||
|
-o '-XPatternSynonyms' \
|
||
|
{} \+
|