From 338541de6fb974cb11d8a3fdf44ab82525d93358 Mon Sep 17 00:00:00 2001 From: Sarah Li <43288700+sarahliii@users.noreply.github.com> Date: Tue, 29 Oct 2019 11:02:08 -0700 Subject: [PATCH] hlint: add page (#3480) --- pages/linux/hlint.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/hlint.md diff --git a/pages/linux/hlint.md b/pages/linux/hlint.md new file mode 100644 index 000000000..8ad39ef44 --- /dev/null +++ b/pages/linux/hlint.md @@ -0,0 +1,24 @@ +# hlint + +> Tool for suggesting improvements to Haskell code. +> More information: . + +- Display suggestions for a given file: + +`hlint {{path/to/file}} options` + +- Check all Haskell files and generate a report: + +`hlint {{path/to/directory}} --report` + +- Automatically apply most suggestions: + +`hlint {{path/to/file}} --refactor` + +- Display additional options: + +`hlint {{path/to/file}} --refactor-options` + +- Generate a settings file ignoring all outstanding hints: + +`hlint {{path/to/file}} --default > {{.hlint.yaml}}`