hpack-dhall-0.5.3: test-suite-hlint/HLint.hs
module Main (main) where
import Language.Haskell.HLint (hlint)
import System.Exit (exitFailure, exitSuccess)
arguments :: [String]
arguments =
[ "library"
, "exe"
, "test-suite-hlint"
, "test-suite-golden"
-- WARNING: HLint turns off QuasiQuotes even if turned on in
-- default-extensions in the cabal file, #55.
-- SEE: https://github.com/ndmitchell/hlint/issues/223
, "-XQuasiQuotes"
]
main :: IO ()
main = do
hints <- hlint arguments
if null hints then exitSuccess else exitFailure