Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ari Angga Nugraha
ariangganugraha-funpro2020-lambda
Commits
47e9376c
Commit
47e9376c
authored
Dec 31, 2016
by
Sean Gillespie
Browse files
Add an hlint test suite
parent
435251b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
lambda-calculator.cabal
View file @
47e9376c
...
...
@@ -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
test/HLint.hs
0 → 100644
View file @
47e9376c
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment