λ ormolu --help
Usage: ormolu [-v|--version] [--manual-exts] [-m|--mode MODE] [-o|--ghc-opt OPT]
[-u|--unsafe] [-d|--debug] [-p|--tolerate-cpp]
[-c|--check-idempotency] [FILE]
Available options:
-h,--help Show this help text
-v,--version Print version of the program
--manual-exts Display extensions that need to be enabled manually
-m,--mode MODE Mode of operation: 'stdout', 'inplace', or 'check'
-o,--ghc-opt OPT GHC options to enable (e.g. language extensions)
-u,--unsafe Do formatting faster but without automatic detection
of defects
-d,--debug Output information useful for debugging
-p,--tolerate-cpp Do not fail if CPP pragma is present
-c,--check-idempotency Fail if formatting is not idempotent.
FILE Haskell source files to format or stdin (default)基本形
dataConfig= Config { cfgDynOptions ::![DynOption] -- ^ Dynamic options to pass to GHC parser , cfgUnsafe ::!Bool -- ^ Do formatting faster but without automatic detection of defects , cfgDebug ::!Bool -- ^ Output information useful for debugging , cfgTolerateCpp ::!Bool -- ^ Do not fail if CPP pragma is present (still doesn't handle CPP but-- useful for formatting of files that enable the extension without-- actually containing CPP macros) } deriving (Eq, Show)