Fakultas Ilmu Komputer UI

Commit 47e9376c authored by Sean Gillespie's avatar Sean Gillespie
Browse files

Add an hlint test suite

parent 435251b3
......@@ -66,6 +66,15 @@ test-suite lambda-calculus-test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
test-suite lambda-calculus-lint
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: HLint.hs
build-depends: base <= 5,
hlint
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/sgillespie/lambda-calculus
module Main (main) where
import Language.Haskell.HLint (hlint)
import System.Exit (exitFailure, exitSuccess)
arguments :: [String]
arguments = [
"app",
"src",
"test"
]
main :: IO ()
main = hlint arguments >>= main'
where main' [] = exitSuccess
main' _ = exitFailure
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment