-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added HLint to the pipeline of test suites.
Notice the --reorder-goals switch in cabal install. More information about it can be found at: haskell/cabal#1780.
- Loading branch information
1 parent
225767f
commit 4d696f5
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{-# LANGUAGE PackageImports #-} | ||
|
||
module HLint () where | ||
|
||
import "hint" HLint.Default | ||
import "hint" HLint.Dollar | ||
import "hint" HLint.Generalise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Main (main) where | ||
|
||
import Language.Haskell.HLint (hlint) | ||
import System.Exit (exitFailure, exitSuccess) | ||
|
||
arguments :: [String] | ||
arguments = | ||
[ "tests" | ||
] | ||
|
||
main :: IO () | ||
main = do | ||
hints <- hlint arguments | ||
if null hints | ||
then exitSuccess | ||
else exitFailure |