mirror of
https://github.com/ikoHSE/sc-task-template.git
synced 2024-11-27 09:46:51 +03:00
Initial commit
This commit is contained in:
parent
200a53fabd
commit
8c72281163
18
package.yaml
Normal file
18
package.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: task
|
||||||
|
version: 0.1.0.0
|
||||||
|
license: Unlicense
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- base >= 4.7 && < 5
|
||||||
|
|
||||||
|
library:
|
||||||
|
source-dirs: src
|
||||||
|
|
||||||
|
tests:
|
||||||
|
task-tests:
|
||||||
|
source-dirs: test
|
||||||
|
main: Main.hs
|
||||||
|
dependencies:
|
||||||
|
- tasty
|
||||||
|
- tasty-hspec
|
||||||
|
- task
|
3
src/Task.hs
Normal file
3
src/Task.hs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module Task
|
||||||
|
(
|
||||||
|
) where
|
4
stack.yaml
Normal file
4
stack.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
resolver: lts-14.22
|
||||||
|
|
||||||
|
packages:
|
||||||
|
- .
|
39
task.cabal
Normal file
39
task.cabal
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
cabal-version: 2.2
|
||||||
|
|
||||||
|
-- This file has been generated from package.yaml by hpack version 0.31.2.
|
||||||
|
--
|
||||||
|
-- see: https://github.com/sol/hpack
|
||||||
|
--
|
||||||
|
-- hash: c454617de75af64ca6c743a3a745918472bb438f8df9c2019b67700d4caaf63c
|
||||||
|
|
||||||
|
name: task
|
||||||
|
version: 0.1.0.0
|
||||||
|
license: Unlicense
|
||||||
|
license-file: LICENSE
|
||||||
|
build-type: Simple
|
||||||
|
|
||||||
|
library
|
||||||
|
exposed-modules:
|
||||||
|
Task
|
||||||
|
other-modules:
|
||||||
|
Paths_task
|
||||||
|
hs-source-dirs:
|
||||||
|
src
|
||||||
|
build-depends:
|
||||||
|
base >=4.7 && <5
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
test-suite task-tests
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: Main.hs
|
||||||
|
other-modules:
|
||||||
|
Tests
|
||||||
|
Paths_task
|
||||||
|
hs-source-dirs:
|
||||||
|
test
|
||||||
|
build-depends:
|
||||||
|
base >=4.7 && <5
|
||||||
|
, task
|
||||||
|
, tasty
|
||||||
|
, tasty-hspec
|
||||||
|
default-language: Haskell2010
|
15
test/Main.hs
Normal file
15
test/Main.hs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
module Main
|
||||||
|
( main,
|
||||||
|
)
|
||||||
|
where
|
||||||
|
|
||||||
|
import Test.Tasty
|
||||||
|
import Test.Tasty.Hspec
|
||||||
|
import Tests
|
||||||
|
|
||||||
|
main :: IO ()
|
||||||
|
main = do
|
||||||
|
tests' <- testSpecs tests
|
||||||
|
defaultMain
|
||||||
|
( testGroup "tests" tests'
|
||||||
|
)
|
11
test/Tests.hs
Normal file
11
test/Tests.hs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
module Tests
|
||||||
|
( tests,
|
||||||
|
)
|
||||||
|
where
|
||||||
|
|
||||||
|
import Task
|
||||||
|
import Test.Tasty.Hspec
|
||||||
|
|
||||||
|
tests :: Spec
|
||||||
|
tests = do
|
||||||
|
return ()
|
Loading…
Reference in New Issue
Block a user