File tree Expand file tree Collapse file tree 6 files changed +59
-0
lines changed
cabal-testsuite/PackageTests/MultipleLibraries/T7270 Expand file tree Collapse file tree 6 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Setup configure
2
+ Warning: dep.cabal:11:30: visibility is experimental feature (issue #5660)
3
+ Configuring dep-0.1.0.0...
4
+ # Setup build
5
+ Preprocessing library 'sublib' for dep-0.1.0.0..
6
+ Building library 'sublib' for dep-0.1.0.0..
7
+ Preprocessing library for dep-0.1.0.0..
8
+ Building library for dep-0.1.0.0..
9
+ # Setup copy
10
+ Installing internal library sublib in <PATH>
11
+ Installing library in <PATH>
12
+ # Setup register
13
+ Registering library 'sublib' for dep-0.1.0.0..
14
+ Registering library for dep-0.1.0.0..
15
+ # Setup configure
16
+ Warning: p.cabal:9:28: colon specifier is experimental feature (issue #5660)
17
+ Configuring p-0.1.0.0...
18
+ # Setup build
19
+ Preprocessing library for p-0.1.0.0..
20
+ Building library for p-0.1.0.0..
Original file line number Diff line number Diff line change
1
+ import Test.Cabal.Prelude
2
+ main = setupAndCabalTest $
3
+ withPackageDb $ do
4
+ withDirectory " dep" $ setup_install []
5
+ withDirectory " p" $ setup_build []
Original file line number Diff line number Diff line change
1
+ module Sublib where
2
+
3
+ s :: String
4
+ s = " Hello World"
Original file line number Diff line number Diff line change
1
+ cabal-version : 3.0
2
+ name : dep
3
+ version : 0.1.0.0
4
+ build-type : Simple
5
+
6
+ -- needed because of https://github.com/haskell/cabal/issues/8095
7
+ library
8
+ default-language : Haskell2010
9
+
10
+ library sublib
11
+ visibility : public
12
+ exposed-modules : Sublib
13
+ build-depends : base >= 4 && < 5
14
+ default-language : Haskell2010
Original file line number Diff line number Diff line change
1
+ module Main where
2
+
3
+ import Sublib (s )
4
+
5
+ main :: IO ()
6
+ main = putStrLn s
Original file line number Diff line number Diff line change
1
+ cabal-version : 3.0
2
+ name : p
3
+ version : 0.1.0.0
4
+ build-type : Simple
5
+
6
+ library
7
+ exposed-modules : Main
8
+ build-depends : base >= 4 && < 5
9
+ , dep :sublib
10
+ default-language : Haskell2010
You can’t perform that action at this time.
0 commit comments