Initial commit

This commit is contained in:
iko 2020-02-02 21:24:29 +03:00
parent 200a53fabd
commit 8c72281163
6 changed files with 90 additions and 0 deletions

18
package.yaml Normal file
View 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
View File

@ -0,0 +1,3 @@
module Task
(
) where

4
stack.yaml Normal file
View File

@ -0,0 +1,4 @@
resolver: lts-14.22
packages:
- .

39
task.cabal Normal file
View 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
View 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
View File

@ -0,0 +1,11 @@
module Tests
( tests,
)
where
import Task
import Test.Tasty.Hspec
tests :: Spec
tests = do
return ()