mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
48aa77a2fa
These need to be run through the top-level nix-shell/shell.nix
19 lines
342 B
Bash
Executable File
19 lines
342 B
Bash
Executable File
#!/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' \
|
|
{} \+
|