mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
10 lines
295 B
Haskell
10 lines
295 B
Haskell
module Main (main) where
|
|
|
|
import Language.Haskell.HLint (Severity(..), hlint, suggestionSeverity)
|
|
import System.Exit (exitFailure, exitSuccess)
|
|
|
|
main :: IO ()
|
|
main = do
|
|
hints <- hlint [ "src" ]
|
|
if null (filter ((>= Warning) . suggestionSeverity) hints) then exitSuccess else exitFailure
|