git.iko.soy/ikoHSE/sc-task-template
on master help sign in
Initial commit
8c72281iko
package.yamlnew file+18
@@ -0,0 +1,18 @@
1+name: task
2+version: 0.1.0.0
3+license: Unlicense
4+
5+dependencies:
6+ - base >= 4.7 && < 5
7+
8+library:
9+ source-dirs: src
10+
11+tests:
12+ task-tests:
13+ source-dirs: test
14+ main: Main.hs
15+ dependencies:
16+ - tasty
17+ - tasty-hspec
18+ - task
src/Task.hsnew file+3
@@ -0,0 +1,3 @@
1+module Task
2+ (
3+ ) where
stack.yamlnew file+4
@@ -0,0 +1,4 @@
1+resolver: lts-14.22
2+
3+packages:
4+- .
task.cabalnew file+39
@@ -0,0 +1,39 @@
1+cabal-version: 2.2
2+
3+-- This file has been generated from package.yaml by hpack version 0.31.2.
4+--
5+-- see: https://github.com/sol/hpack
6+--
7+-- hash: c454617de75af64ca6c743a3a745918472bb438f8df9c2019b67700d4caaf63c
8+
9+name: task
10+version: 0.1.0.0
11+license: Unlicense
12+license-file: LICENSE
13+build-type: Simple
14+
15+library
16+ exposed-modules:
17+ Task
18+ other-modules:
19+ Paths_task
20+ hs-source-dirs:
21+ src
22+ build-depends:
23+ base >=4.7 && <5
24+ default-language: Haskell2010
25+
26+test-suite task-tests
27+ type: exitcode-stdio-1.0
28+ main-is: Main.hs
29+ other-modules:
30+ Tests
31+ Paths_task
32+ hs-source-dirs:
33+ test
34+ build-depends:
35+ base >=4.7 && <5
36+ , task
37+ , tasty
38+ , tasty-hspec
39+ default-language: Haskell2010
test/Main.hsnew file+15
@@ -0,0 +1,15 @@
1+module Main
2+ ( main,
3+ )
4+where
5+
6+import Test.Tasty
7+import Test.Tasty.Hspec
8+import Tests
9+
10+main :: IO ()
11+main = do
12+ tests' <- testSpecs tests
13+ defaultMain
14+ ( testGroup "tests" tests'
15+ )
test/Tests.hsnew file+11
@@ -0,0 +1,11 @@
1+module Tests
2+ ( tests,
3+ )
4+where
5+
6+import Task
7+import Test.Tasty.Hspec
8+
9+tests :: Spec
10+tests = do
11+ return ()