diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2019-01-22 00:34:05 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2019-01-26 02:59:23 +0100 |
commit | 541d219dbcf097c0c50b4ee0216f270c9c8c1342 (patch) | |
tree | d4c15bf12e74d3bc4be880c20b176045e1d961f1 /tests/multipkg/proj/pkg-b | |
parent | a6a20f17279e31e35861d52a16232897915918fc (diff) |
Add support and test coverage for mulit-pkg projects
Diffstat (limited to 'tests/multipkg/proj/pkg-b')
-rw-r--r-- | tests/multipkg/proj/pkg-b/Exe.hs | 1 | ||||
-rw-r--r-- | tests/multipkg/proj/pkg-b/Lib.hs | 2 | ||||
-rw-r--r-- | tests/multipkg/proj/pkg-b/pkg-b.cabal | 24 |
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/multipkg/proj/pkg-b/Exe.hs b/tests/multipkg/proj/pkg-b/Exe.hs new file mode 100644 index 0000000..d5e55cc --- /dev/null +++ b/tests/multipkg/proj/pkg-b/Exe.hs @@ -0,0 +1 @@ +main = putStrLn "Hello World!" diff --git a/tests/multipkg/proj/pkg-b/Lib.hs b/tests/multipkg/proj/pkg-b/Lib.hs new file mode 100644 index 0000000..b851fd6 --- /dev/null +++ b/tests/multipkg/proj/pkg-b/Lib.hs @@ -0,0 +1,2 @@ +module Lib where +lib = () diff --git a/tests/multipkg/proj/pkg-b/pkg-b.cabal b/tests/multipkg/proj/pkg-b/pkg-b.cabal new file mode 100644 index 0000000..b8d39e6 --- /dev/null +++ b/tests/multipkg/proj/pkg-b/pkg-b.cabal @@ -0,0 +1,24 @@ +name: pkg-b +version: 0 +build-type: Simple +cabal-version: >=1.10 + +library + exposed-modules: Lib + build-depends: base, filepath, directory + default-language: Haskell2010 + +executable pkg-b-exe + main-is: Exe.hs + build-depends: base, pkg-b + default-language: Haskell2010 + +test-suite pkg-b-test + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, pkg-b + +benchmark pkg-b-bench + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, pkg-b |