Skip to content

Commit

Permalink
Reproducing test case for #365
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Jun 25, 2015
1 parent 221602b commit 45cc6b7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/integration/tests/365-invalid-success/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import StackTest

main :: IO ()
main = do
stackErr ["build"]
stackErr ["build"]
writeFile "app/Foo.hs" "module Foo where"
stack ["build"]
writeFile "app/Foo.hs" "module Foo wher e"
stackErr ["build"]
stackErr ["build"]
4 changes: 4 additions & 0 deletions test/integration/tests/365-invalid-success/files/app/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Foo

main :: IO ()
main = return ()
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: new-template
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10

executable new-template-exe
hs-source-dirs: app
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: base
default-language: Haskell2010
other-modules: Foo
5 changes: 5 additions & 0 deletions test/integration/tests/365-invalid-success/files/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-2.15

0 comments on commit 45cc6b7

Please sign in to comment.