Skip to content

Commit f3f810f

Browse files
Update error messages for ghc-9
1 parent cf23a3c commit f3f810f

File tree

1 file changed

+26
-1
lines changed
  • test/error-messages-cases/no-plugin

1 file changed

+26
-1
lines changed
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
• Couldn't match type ‘as ++ (bs ++ cs)’ with ‘(as ++ bs) ++ cs’
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:
9+
• Couldn't match type: as ++ (bs ++ cs)
10+
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)