From 0f8bc9e9f8db55d76aa5c0c2709021f8e631e024 Mon Sep 17 00:00:00 2001 From: fanghr Date: Tue, 3 May 2022 19:45:49 +0800 Subject: [PATCH] add subcommand `lint_haskell` to lint haskell code --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 36a13e3..c18195c 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ usage: @echo " format_haskell -- Format haskell stuff, including source code and cabal files" @echo " format_nix -- Format *.nix files only" @echo " format_check -- Check if all haskell stuff have been formatted correctly" + @echo " lint_haskell -- run hlint on all haskell files" hoogle: pkill hoogle || true @@ -37,6 +38,9 @@ format_check: -not -path './haddock/*' \ | xargs fourmolu $(FORMAT_EXTENSIONS) -m check +lint_haskell: + find -name '*.hs' -not -path './dist*/*' -not -path './haddock/*' | xargs hlint + haddock: cabal haddock --haddock-html --haddock-hoogle --builddir=haddock