diff options
author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2019-11-15 10:01:07 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-19 20:39:20 -0500 |
commit | b79e46d682d144c6a7a9ff6e7dca0d892b690654 (patch) | |
tree | 58b06bf198b38cdebc622f43532177fc07792f72 /testsuite/tests/th | |
parent | ef8a08e0dd4e5b908b7fbce1b3101dc311c4d3e1 (diff) | |
download | haskell-b79e46d682d144c6a7a9ff6e7dca0d892b690654.tar.gz |
Strip parentheses in expressions contexts in error messages
This makes error messages a tad less noisy.
Diffstat (limited to 'testsuite/tests/th')
-rw-r--r-- | testsuite/tests/th/T10279.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/th/T17380.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/th/TH_1tuple.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/tests/th/T10279.stderr b/testsuite/tests/th/T10279.stderr index 0d23a80877..d5f7052d05 100644 --- a/testsuite/tests/th/T10279.stderr +++ b/testsuite/tests/th/T10279.stderr @@ -4,5 +4,5 @@ T10279.hs:10:10: error: no unit id matching ‘rts-1.0’ was found (This unit ID looks like the source package ID; the real unit ID is ‘rts’) - • In the expression: (rts-1.0:A.Foo) + • In the expression: rts-1.0:A.Foo In an equation for ‘blah’: blah = (rts-1.0:A.Foo) diff --git a/testsuite/tests/th/T17380.stderr b/testsuite/tests/th/T17380.stderr index 7e1977b6e4..a2501a4cb4 100644 --- a/testsuite/tests/th/T17380.stderr +++ b/testsuite/tests/th/T17380.stderr @@ -8,7 +8,7 @@ T17380.hs:9:7: error: T17380.hs:12:9: error: • Couldn't match expected type ‘Maybe String’ with actual type ‘Unit (Maybe [Char])’ - • In the expression: (Unit Just "wat") + • In the expression: Unit Just "wat" In an equation for ‘bar’: bar = (Unit Just "wat") T17380.hs:15:6: error: diff --git a/testsuite/tests/th/TH_1tuple.stderr b/testsuite/tests/th/TH_1tuple.stderr index bc7f25ad81..3acb218b6e 100644 --- a/testsuite/tests/th/TH_1tuple.stderr +++ b/testsuite/tests/th/TH_1tuple.stderr @@ -3,5 +3,5 @@ TH_1tuple.hs:11:7: error: • Expecting one more argument to ‘Unit’ Expected a type, but ‘Unit’ has kind ‘* -> *’ • In an expression type signature: Unit - In the expression: (1 :: Unit) + In the expression: 1 :: Unit In an equation for ‘y’: y = (1 :: Unit) |