git.iko.soy/ikoHSE/sc-project
on master help sign in
Initial commit
commit8310bc56d9909010e20eaf27701ee7de63b7ea34 authoriko <ilyakooo0@gmail.com> dateSun 24 May 2020, 13:41 (6 years ago)
7 files changed+106
.gitignore+28 LICENSE+24 package.yaml+18 src/Task.hs+3 stack.yaml+7 test/Main.hs+15 test/Tests.hs+11
.gitignorenew file+28
@@ -0,0 +1,28 @@
1+dist
2+dist-*
3+cabal-dev
4+*.o
5+*.hi
6+*.hie
7+*.chi
8+*.chs.h
9+*.dyn_o
10+*.dyn_hi
11+.hpc
12+.hsenv
13+.cabal-sandbox/
14+cabal.sandbox.config
15+*.prof
16+*.aux
17+*.hp
18+*.eventlog
19+.stack-work/
20+cabal.project.local
21+cabal.project.local~
22+.HTF/
23+.ghc.environment.*
24+.DS_Store
25+.idea/
26+*.dump-hi
27+*.lock
28+*.iml
LICENSEnew file+24
@@ -0,0 +1,24 @@
1+This is free and unencumbered software released into the public domain.
2+
3+Anyone is free to copy, modify, publish, use, compile, sell, or
4+distribute this software, either in source code form or as a compiled
5+binary, for any purpose, commercial or non-commercial, and by any
6+means.
7+
8+In jurisdictions that recognize copyright laws, the author or authors
9+of this software dedicate any and all copyright interest in the
10+software to the public domain. We make this dedication for the benefit
11+of the public at large and to the detriment of our heirs and
12+successors. We intend this dedication to be an overt act of
13+relinquishment in perpetuity of all present and future rights to this
14+software under copyright law.
15+
16+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+OTHER DEALINGS IN THE SOFTWARE.
23+
24+For more information, please refer to <https://unlicense.org>
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+7
@@ -0,0 +1,7 @@
1+resolver: lts-14.27
2+
3+packages:
4+- .
5+
6+ghc-options:
7+ "$locals": -ddump-to-file -ddump-hi -fwarn-unused-binds -fwarn-unused-imports -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wpartial-fields -Werror=missing-home-modules -Wmissing-home-modules -Widentities -Wredundant-constraints -Wmissing-export-lists
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 ()