packages feed

oanda-rest-api-0.4.0: tests/HLint.hs

module Main (main) where

import Language.Haskell.HLint (hlint)
import System.Exit (exitFailure, exitSuccess)

arguments :: [String]
arguments =
  [ "--cpp-simple"
  , "src"
  , "tests"
  , "-i", "Use newtype instead of data"
  ]

main :: IO ()
main = do
    hints <- hlint arguments
    if null hints then exitSuccess else exitFailure