-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warnings are dumped with color output (fixes #2997)
- Loading branch information
Showing
9 changed files
with
43 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
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
10 changes: 10 additions & 0 deletions
10
test/integration/tests/2997-ensure-warnings-output/Main.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,10 @@ | ||
import StackTest | ||
import Data.List (isInfixOf) | ||
|
||
main :: IO () | ||
main = do | ||
stack ["clean", "--full"] | ||
stackCheckStderr ["build", "--terminal", "--color=always"] $ \str -> | ||
if "no type signature" `isInfixOf` str | ||
then pure () | ||
else error "Warnings are not being shown" |
1 change: 1 addition & 0 deletions
1
test/integration/tests/2997-ensure-warnings-output/files/.gitignore
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 @@ | ||
*.cabal |
9 changes: 9 additions & 0 deletions
9
test/integration/tests/2997-ensure-warnings-output/files/bar/package.yaml
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,9 @@ | ||
name: bar | ||
version: 0 | ||
|
||
dependencies: | ||
- base | ||
|
||
library: | ||
source-dirs: src | ||
ghc-options: -Wall |
3 changes: 3 additions & 0 deletions
3
test/integration/tests/2997-ensure-warnings-output/files/bar/src/Bar.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,3 @@ | ||
module Bar where | ||
|
||
bar = () |
9 changes: 9 additions & 0 deletions
9
test/integration/tests/2997-ensure-warnings-output/files/foo/package.yaml
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,9 @@ | ||
name: foo | ||
version: 0 | ||
|
||
dependencies: | ||
- base | ||
|
||
library: | ||
source-dirs: src | ||
ghc-options: -Wall |
3 changes: 3 additions & 0 deletions
3
test/integration/tests/2997-ensure-warnings-output/files/foo/src/Foo.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,3 @@ | ||
module Foo where | ||
|
||
foo = () |
5 changes: 5 additions & 0 deletions
5
test/integration/tests/2997-ensure-warnings-output/files/stack.yaml
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,5 @@ | ||
resolver: ghc-8.2.2 | ||
packages: | ||
- foo | ||
- bar | ||
dump-logs: warning |