Skip to content

Commit 25a4087

Browse files
let stack handle deps and add test skeleton.
1 parent 87cd893 commit 25a4087

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

codeclimate-shellcheck.cabal

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ library
2828
CC.Types
2929
Data.Shebang
3030
build-depends:
31-
aeson >= 0.9.0.1 && <= 0.10.0.0
32-
, attoparsec >= 0.13.0.0 && <= 0.14.0.0
33-
, base >= 4.7 && <= 5
34-
, bytestring >= 0.10.4.0 && <= 0.11.0.0
35-
, containers >= 0.5.6.0 && <= 0.5.7.0
36-
, directory >= 1.2.1.0 && <= 1.3.0.0
37-
, extra >= 1.4.0 && <= 1.5.0
38-
, filepath >= 1.3.0.0 && <= 1.4.0.0
39-
, Glob >= 0.7.5 && <= 0.8.0
40-
, ShellCheck >= 0.4.1 && <= 0.5.0
41-
, text >= 1.1.0.0 && <= 1.2.1.3
42-
, yaml >= 0.8.0.0 && <= 0.9.0.0
31+
base >= 4.7 && <= 5
32+
, aeson
33+
, attoparsec
34+
, bytestring
35+
, containers
36+
, directory
37+
, extra
38+
, filepath
39+
, Glob
40+
, ShellCheck
41+
, text
42+
, yaml
4343
hs-source-dirs: src
4444
ghc-options: -Wall
4545
default-language: Haskell2010
@@ -53,3 +53,22 @@ executable codeclimate-shellcheck
5353
hs-source-dirs: app
5454
ghc-options: -Wall
5555
default-language: Haskell2010
56+
57+
test-suite codeclimate-shellcheck-test
58+
main-is:
59+
Spec.hs
60+
type: exitcode-stdio-1.0
61+
62+
build-depends:
63+
base >= 4.7 && <= 5
64+
, codeclimate-shellcheck
65+
, aeson
66+
, aeson-qq
67+
, bytestring
68+
, tasty
69+
, tasty-hspec
70+
, tasty-hunit
71+
, hspec
72+
hs-source-dirs: test
73+
ghc-options: -Wall
74+
default-language: Haskell2010

test/Spec.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
main :: IO ()
2+
main = putStrLn "hello, world."

0 commit comments

Comments
 (0)