commit f15e203db2ea53303f5993d41648713aeb6801d8 Author: iko Date: Sun Apr 19 23:38:57 2020 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d039439 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +dist +dist-* +cabal-dev +*.o +*.hi +*.hie +*.chi +*.chs.h +*.dyn_o +*.dyn_hi +.hpc +.hsenv +.cabal-sandbox/ +cabal.sandbox.config +*.prof +*.aux +*.hp +*.eventlog +.stack-work/ +cabal.project.local +cabal.project.local~ +.HTF/ +.ghc.environment.* +*.cabal +.DS_Store +.idea/ +*.dump-hi diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fdddb29 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..541dff9 --- /dev/null +++ b/package.yaml @@ -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 diff --git a/src/Task.hs b/src/Task.hs new file mode 100644 index 0000000..fe96aed --- /dev/null +++ b/src/Task.hs @@ -0,0 +1,3 @@ +module Task + ( + ) where diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..86be96f --- /dev/null +++ b/stack.yaml @@ -0,0 +1,7 @@ +resolver: lts-14.27 + +packages: +- . + +ghc-options: + "$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 diff --git a/test/Main.hs b/test/Main.hs new file mode 100644 index 0000000..7e1d141 --- /dev/null +++ b/test/Main.hs @@ -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' + ) diff --git a/test/Tests.hs b/test/Tests.hs new file mode 100644 index 0000000..d435cc1 --- /dev/null +++ b/test/Tests.hs @@ -0,0 +1,11 @@ +module Tests + ( tests, + ) +where + +import Task +import Test.Tasty.Hspec + +tests :: Spec +tests = do + return ()