Skip to content

Commit 5a9d51d

Browse files
committed
Add failing test case for #2781
1 parent c8c7465 commit 5a9d51d

File tree

8 files changed

+64
-0
lines changed

8 files changed

+64
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import StackTest
2+
import System.Directory
3+
4+
main :: IO ()
5+
main = do
6+
createDirectoryIfMissing True "foo/src"
7+
readFile "foo/v1/Foo.hs" >>= writeFile "foo/src/Foo.hs"
8+
stack ["bench"]
9+
readFile "foo/v2/Foo.hs" >>= writeFile "foo/src/Foo.hs"
10+
stack ["bench"]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: bar
2+
version: 0.1.0.0
3+
build-type: Simple
4+
cabal-version: >=1.10
5+
6+
library
7+
hs-source-dirs: src
8+
exposed-modules: Bar
9+
build-depends: base, foo
10+
default-language: Haskell2010
11+
12+
benchmark bench
13+
type: exitcode-stdio-1.0
14+
hs-source-dirs: bench
15+
main-is: bench.hs
16+
build-depends: base
17+
, bar
18+
default-language: Haskell2010
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
main :: IO ()
2+
main = return ()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module Bar
2+
( bar
3+
) where
4+
5+
import Foo
6+
7+
bar :: IO ()
8+
bar = foo
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: foo
2+
version: 0.1.0.0
3+
build-type: Simple
4+
cabal-version: >=1.10
5+
6+
library
7+
hs-source-dirs: src
8+
exposed-modules: Foo
9+
build-depends: base
10+
default-language: Haskell2010
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Foo
2+
( foo
3+
) where
4+
5+
foo :: IO ()
6+
foo = putStrLn "foo1"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Foo
2+
( foo
3+
) where
4+
5+
foo :: IO ()
6+
foo = putStrLn "foo2"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resolver: ghc-8.2.1
2+
packages:
3+
- foo
4+
- bar

0 commit comments

Comments
 (0)