ormolu

A formatter for Haskell source code that applies uniform style

brewmacoslinux
Try with needOr install directly
Source

About

Formatter for Haskell source code

Commands

ormolu

Examples

Format a single Haskell file in-place$ ormolu -i MyModule.hs
Check formatting without modifying files$ ormolu --check MyModule.hs
Format all Haskell files in a directory recursively$ ormolu -i $(find . -name '*.hs')