Skip to content

Commit 668f1df

Browse files
committed
Generate initial internal-libraries test
1 parent a06be90 commit 668f1df

File tree

5 files changed

+49
-4
lines changed

5 files changed

+49
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Main where
22

3+
import Lib
4+
35
main :: IO ()
46
main = do
57
putStrLn "hello world"

internal-libraries/internal-libraries.cabal

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--
33
-- see: https://github.com/sol/hpack
44
--
5-
-- hash: 520fe73f467521f75fc0cc670e59dee22d67c545930cc720511147707cba1c52
5+
-- hash: e2247277608877ba4abe74ee652124a5b5890454722ba5977060b5af4a8a548d
66

77
name: internal-libraries
88
version: 0.1.0.0
@@ -14,17 +14,41 @@ copyright: 2017
1414
license: BSD3
1515
license-file: LICENSE
1616
build-type: Simple
17-
cabal-version: >= 1.10
17+
cabal-version: >= 2.0
1818

1919
extra-source-files:
2020
README.md
2121

22+
library
23+
exposed-modules:
24+
Lib
25+
other-modules:
26+
Paths_internal_libraries
27+
hs-source-dirs:
28+
src
29+
build-depends:
30+
base >=4.7 && <5
31+
, internal
32+
default-language: Haskell2010
33+
34+
library internal
35+
exposed-modules:
36+
Internal
37+
other-modules:
38+
Paths_internal_libraries
39+
hs-source-dirs:
40+
internal
41+
build-depends:
42+
base >=4.7 && <5
43+
default-language: Haskell2010
44+
2245
executable internal-libraries
2346
main-is: Main.hs
2447
other-modules:
2548
Paths_internal_libraries
2649
hs-source-dirs:
27-
src
50+
app
2851
build-depends:
2952
base >=4.7 && <5
53+
, internal-libraries
3054
default-language: Haskell2010
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Internal where

internal-libraries/package.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,22 @@ extra-source-files:
1414
dependencies:
1515
- base >= 4.7 && < 5
1616

17+
library:
18+
source-dirs: src
19+
exposed-modules:
20+
- Lib
21+
dependencies:
22+
- internal
23+
24+
internal-libraries:
25+
internal:
26+
source-dirs: internal
27+
exposed-modules:
28+
- Internal
29+
1730
executables:
1831
internal-libraries:
19-
source-dirs: src
32+
source-dirs: app
2033
main: Main.hs
34+
dependencies:
35+
- internal-libraries

internal-libraries/src/Lib.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Lib where
2+
3+
import Internal

0 commit comments

Comments
 (0)