-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import StackTest | ||
import System.Directory | ||
|
||
main :: IO () | ||
main = do | ||
createDirectoryIfMissing True "foo/src" | ||
readFile "foo/v1/Foo.hs" >>= writeFile "foo/src/Foo.hs" | ||
stack ["bench"] | ||
readFile "foo/v2/Foo.hs" >>= writeFile "foo/src/Foo.hs" | ||
stack ["bench"] |
18 changes: 18 additions & 0 deletions
18
test/integration/tests/2781-shadow-bug/files/bar/bar.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: bar | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
cabal-version: >=1.10 | ||
|
||
library | ||
hs-source-dirs: src | ||
exposed-modules: Bar | ||
build-depends: base, foo | ||
default-language: Haskell2010 | ||
|
||
benchmark bench | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: bench | ||
main-is: bench.hs | ||
build-depends: base | ||
, bar | ||
default-language: Haskell2010 |
2 changes: 2 additions & 0 deletions
2
test/integration/tests/2781-shadow-bug/files/bar/bench/bench.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
main :: IO () | ||
main = return () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Bar | ||
( bar | ||
) where | ||
|
||
import Foo | ||
|
||
bar :: IO () | ||
bar = foo |
10 changes: 10 additions & 0 deletions
10
test/integration/tests/2781-shadow-bug/files/foo/foo.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: foo | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
cabal-version: >=1.10 | ||
|
||
library | ||
hs-source-dirs: src | ||
exposed-modules: Foo | ||
build-depends: base | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Foo | ||
( foo | ||
) where | ||
|
||
foo :: IO () | ||
foo = putStrLn "foo1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Foo | ||
( foo | ||
) where | ||
|
||
foo :: IO () | ||
foo = putStrLn "foo2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resolver: ghc-8.2.1 | ||
packages: | ||
- foo | ||
- bar |