diff options
Diffstat (limited to 'test/test-package')
-rw-r--r-- | test/test-package/.gitignore | 12 | ||||
-rw-r--r-- | test/test-package/Setup.hs | 2 | ||||
-rw-r--r-- | test/test-package/app/Main.hs | 7 | ||||
-rw-r--r-- | test/test-package/src/Lib.hs | 13 | ||||
-rw-r--r-- | test/test-package/src/Types.hs | 5 | ||||
-rw-r--r-- | test/test-package/stack-8.0.2.yaml | 1 | ||||
-rw-r--r-- | test/test-package/stack.yaml | 1 | ||||
-rw-r--r-- | test/test-package/test-package.cabal | 33 | ||||
-rw-r--r-- | test/test-package/test/Spec.hs | 2 |
9 files changed, 76 insertions, 0 deletions
diff --git a/test/test-package/.gitignore b/test/test-package/.gitignore new file mode 100644 index 0000000..e03043b --- /dev/null +++ b/test/test-package/.gitignore @@ -0,0 +1,12 @@ +dist +dist-* +.stack-work/ +.haskell-code-explorer/ +.cabal-sandbox/ +cabal.sandbox.config +cabal.config +log/ +tmp/ +TAGS +\#*\# +.\#* diff --git a/test/test-package/Setup.hs b/test/test-package/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/test/test-package/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/test/test-package/app/Main.hs b/test/test-package/app/Main.hs new file mode 100644 index 0000000..5185ba4 --- /dev/null +++ b/test/test-package/app/Main.hs @@ -0,0 +1,7 @@ +module Main where + +import Lib + +main :: IO () +main = someFunc + diff --git a/test/test-package/src/Lib.hs b/test/test-package/src/Lib.hs new file mode 100644 index 0000000..877bbe5 --- /dev/null +++ b/test/test-package/src/Lib.hs @@ -0,0 +1,13 @@ +module Lib + ( someFunc + ) where + +import Types(Test(..)) + +-- | someFunc documentation +someFunc :: IO () +someFunc = putStrLn "someFunc" + +-- | mkTest documentation +mkTest :: Int -> Test +mkTest i = Test i diff --git a/test/test-package/src/Types.hs b/test/test-package/src/Types.hs new file mode 100644 index 0000000..ad37ece --- /dev/null +++ b/test/test-package/src/Types.hs @@ -0,0 +1,5 @@ +module Types + ( Test(..) + ) where + +data Test = Test Int diff --git a/test/test-package/stack-8.0.2.yaml b/test/test-package/stack-8.0.2.yaml new file mode 100644 index 0000000..4257691 --- /dev/null +++ b/test/test-package/stack-8.0.2.yaml @@ -0,0 +1 @@ +resolver: lts-9.14 diff --git a/test/test-package/stack.yaml b/test/test-package/stack.yaml new file mode 100644 index 0000000..5bad591 --- /dev/null +++ b/test/test-package/stack.yaml @@ -0,0 +1 @@ +resolver: lts-11.3 diff --git a/test/test-package/test-package.cabal b/test/test-package/test-package.cabal new file mode 100644 index 0000000..30f517d --- /dev/null +++ b/test/test-package/test-package.cabal @@ -0,0 +1,33 @@ +name: test-package +version: 0.1.0.0 +description: Test package +build-type: Simple +cabal-version: >= 1.10 +library + hs-source-dirs: + src + build-depends: + base >=4.7 && <5 + exposed-modules: + Lib + other-modules: + Types + Paths_test_package + default-language: Haskell2010 +executable test-package-exe + main-is: Main.hs + hs-source-dirs: + app + build-depends: + base >=4.7 && <5 + , test-package + default-language: Haskell2010 +test-suite test-package-test + type: exitcode-stdio-1.0 + main-is: Spec.hs + hs-source-dirs: + test + build-depends: + base >=4.7 && <5 + , test-package + default-language: Haskell2010 diff --git a/test/test-package/test/Spec.hs b/test/test-package/test/Spec.hs new file mode 100644 index 0000000..cd4753f --- /dev/null +++ b/test/test-package/test/Spec.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "Test suite not yet implemented" |