Skip to content

Commit 62c540b

Browse files
committed
focus on the important part of the expected error
this way the test is less likely to break when the surrounding text changes.
1 parent 2aa4ed2 commit 62c540b

File tree

1 file changed

+0
-24
lines changed
  • test/error-messages-cases/no-plugin

1 file changed

+0
-24
lines changed
Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,2 @@
1-
configure (lib)
2-
Configuring no-plugin-0.0.0...
3-
build (lib)
4-
Preprocessing library for no-plugin-0.0.0..
5-
Building library for no-plugin-0.0.0..
6-
[1 of 2] Compiling NoPlugin.Test
7-
8-
<path>/error-messages-cases/no-plugin/src/NoPlugin/Test.hs:15:16: error:
91
• Couldn't match type: as ++ (bs ++ cs)
102
with: (as ++ bs) ++ cs
11-
Expected: proxy ((as ++ bs) ++ cs)
12-
Actual: proxy (as ++ (bs ++ cs))
13-
NB: ‘++’ is a non-injective type family
14-
• In the expression: r
15-
In an equation for ‘ex2e’: ex2e _ _ _ r = r
16-
• Relevant bindings include
17-
r :: proxy (as ++ (bs ++ cs)) (bound at src/NoPlugin/Test.hs:15:12)
18-
ex2e :: proxy as
19-
-> proxy bs
20-
-> proxy cs
21-
-> proxy (as ++ (bs ++ cs))
22-
-> proxy ((as ++ bs) ++ cs)
23-
(bound at src/NoPlugin/Test.hs:15:1)
24-
|
25-
15 | ex2e _ _ _ r = r
26-
| ^

0 commit comments

Comments
 (0)