on develop help sign in
Add hlint test suite
commit0a8cfa90a15fe3ebf4c6a83e64487afca74b69cf authorRyan Trinkle <ryan.trinkle@gmail.com> dateSun 17 Jul 2016, 19:03 (10 years ago) parent80904ba
2 files changed+18
reflex-dom.cabal+6 test/hlint.hs+12
reflex-dom.cabal+6
@@ -105,6 +105,12 @@ library
105105 other-extensions: TemplateHaskell
106106 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
107107
108+test-suite hlint
109+ build-depends: base, hlint == 1.9.*
110+ hs-source-dirs: test
111+ main-is: hlint.hs
112+ type: exitcode-stdio-1.0
113+
108114source-repository head
109115 type: git
110116 location: https://github.com/reflex-frp/reflex-dom
test/hlint.hsnew file+12
@@ -0,0 +1,12 @@
1+import Language.Haskell.HLint3 (hlint)
2+import System.Exit (exitFailure, exitSuccess)
3+
4+main :: IO ()
5+main = do
6+ ideas <- hlint
7+ [ "."
8+ , "--ignore=Redundant do"
9+ , "--ignore=Use camelCase"
10+ , "--ignore=Redundant $"
11+ ]
12+ if null ideas then exitSuccess else exitFailure