hfmt alternatives and similar packages
Based on the "Language" category.
Alternatively, view hfmt alternatives based on common mentions on social networks and blogs.
-
stylish-haskell
DISCONTINUED. Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell] -
ministg
Ministg is an interpreter for a high-level, small-step, operational semantics for the STG machine.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hfmt or a related project?
README
hfmt
hfmt is a tool for formatting Haskell programs. Currently it is simply a gofmt style wrapper of the excellent tools hlint, hindent, and stylish-haskell.
Installation
with stack
$ stack install hfmt
with cabal
$ cabal install hfmt
Usage
Check all Haskell source under the current directory:
hfmt
Overwrite files with formatting suggestions:
hfmt -w
Help text
λ hfmt --help
hfmt - format Haskell programs
Usage: hfmt [-d|--print-diffs] [FILE]
Reformats Haskell source files by applying HLint, hindent, and
stylish-haskell.
Available options:
-h,--help Show this help text
-d,--print-diffs If a file's formatting is different, print a diff.
-s,--print-sources If a file's formatting is different, print its
source.
-l,--print-paths If a file's formatting is different, print its path.
-w,--write-sources If a file's formatting is different, overwrite it.
FILE Explicit paths to process.
- A single '-' will process standard input.
- Files will be processed directly.
- Directories will be recursively searched for source files to process.
- .cabal files will be parsed and all specified source directories and files processed.
- If no paths are given, the current directory will be searched for .cabal files to process, if none are found the current directory will be recursively searched for source files to process.
Exit Codes:
0 = No error
1 = Encountered I/O or other operational error
2 = Failed to parse a source code file
3 = Source code was parsed but cannot be formatted properly
4 = Formatted code differs from existing source (--print-diffs only)
*Note that all licence references and agreements mentioned in the hfmt README section above
are relevant to that project's source code only.