Fix tab spacing in error messages

This commit is contained in:
Richard Feldman 2025-08-15 22:47:38 -04:00
parent 2e5f7d8be1
commit d643683f51
No known key found for this signature in database
36 changed files with 301 additions and 291 deletions

View file

@ -562,15 +562,25 @@ fn renderElementToMarkdown(element: DocumentElement, writer: anytype, config: Re
// Add underline for single-line regions in markdown
if (region.start_line == region.end_line) {
// Print spaces up to the start column
var i: u32 = 0;
while (i < region.start_column - 1) : (i += 1) {
try writer.writeAll(" ");
// Recreate the exact whitespace from the source line up to the start column
const chars_before_target = region.start_column - 1;
if (chars_before_target > 0 and lines.len >= chars_before_target) {
// Extract and print the exact whitespace characters (including tabs) from the source
for (lines[0..chars_before_target]) |char| {
if (char == '\t') {
try writer.writeAll("\t");
} else if (char == ' ') {
try writer.writeAll(" ");
} else {
// For non-whitespace characters, use a space to maintain positioning
try writer.writeAll(" ");
}
}
}
// Print the underline
const underline_len = source_region.calculateUnderlineLength(region.start_column, region.end_column);
i = 0;
var i: u32 = 0;
while (i < underline_len) : (i += 1) {
try writer.writeAll("^");
}

View file

@ -28,14 +28,14 @@ The redeclaration is here:
```roc
var x_ = 10 # Redeclare var - should warn but proceed
```
^^^^^^^^^^^
^^^^^^^^^^^
But `x_` was already defined here:
**can_var_scoping_var_redeclaration.md:5:2:5:12:**
```roc
var x_ = 5
```
^^^^^^^^^^
^^^^^^^^^^
# TOKENS

View file

@ -41,7 +41,7 @@ I am part way through parsing this tuple, but it is empty:
```roc
empty = ()
```
^^
^^
If you want to represent nothing, try using an empty record: `{}`.
@ -54,7 +54,7 @@ The unused variable is declared here:
```roc
single = (42)
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -66,7 +66,7 @@ The unused variable is declared here:
```roc
pair = (1, 2)
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -78,7 +78,7 @@ The unused variable is declared here:
```roc
triple = (1, "hello", True)
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -90,7 +90,7 @@ The unused variable is declared here:
```roc
nested = ((1, 2), (3, 4))
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -102,7 +102,7 @@ The unused variable is declared here:
```roc
mixed = (add_one(5), "world", [1, 2, 3])
```
^^^^^
^^^^^
**UNUSED VARIABLE**
@ -114,7 +114,7 @@ The unused variable is declared here:
```roc
with_vars = (x, y, z)
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -126,7 +126,7 @@ The unused variable is declared here:
```roc
with_lambda = (|n| n + 1, 42)
```
^^^^^^^^^^^
^^^^^^^^^^^
# TOKENS

View file

@ -204,7 +204,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNUSED VARIABLE**
@ -216,7 +216,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNUSED VARIABLE**
@ -228,7 +228,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNUSED VARIABLE**
@ -240,7 +240,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNUSED VARIABLE**
@ -252,7 +252,7 @@ The unused variable is declared here:
```roc
h1 = {
```
^^
^^
**UNUSED VARIABLE**
@ -264,7 +264,7 @@ The unused variable is declared here:
```roc
h2 = h(
```
^^
^^
**UNUSED VARIABLE**
@ -276,7 +276,7 @@ The unused variable is declared here:
```roc
h3 = A(
```
^^
^^
**UNUSED VARIABLE**
@ -288,7 +288,7 @@ The unused variable is declared here:
```roc
h4 = [
```
^^
^^
**UNUSED VARIABLE**
@ -300,7 +300,7 @@ The unused variable is declared here:
```roc
h5 = (
```
^^
^^
# TOKENS

View file

@ -24,7 +24,7 @@ The module header says that `a!` is exposed, but it is not defined anywhere in t
```roc
a!,
```
^^
^^
You can fix this by either defining `a!` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -34,7 +34,7 @@ The module header says that `b!` is exposed, but it is not defined anywhere in t
```roc
b!,
```
^^
^^
You can fix this by either defining `b!` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -29,7 +29,7 @@ The module header says that `a!` is exposed, but it is not defined anywhere in t
```roc
a!,
```
^^
^^
You can fix this by either defining `a!` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -39,7 +39,7 @@ The module header says that `b!` is exposed, but it is not defined anywhere in t
```roc
b!,
```
^^
^^
You can fix this by either defining `b!` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -38,7 +38,7 @@ The module header says that `E1` is exposed, but it is not defined anywhere in t
```roc
E1,
```
^^
^^
You can fix this by either defining `E1` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -48,7 +48,7 @@ The module header says that `E2` is exposed, but it is not defined anywhere in t
```roc
E2,
```
^^
^^
You can fix this by either defining `E2` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -204,7 +204,7 @@ The unused variable is declared here:
```roc
b
```
^
^
**UNUSED VARIABLE**
@ -216,7 +216,7 @@ The unused variable is declared here:
```roc
b
```
^
^
**UNUSED VARIABLE**
@ -228,7 +228,7 @@ The unused variable is declared here:
```roc
b
```
^
^
**UNUSED VARIABLE**
@ -240,7 +240,7 @@ The unused variable is declared here:
```roc
b
```
^
^
**UNUSED VARIABLE**
@ -252,7 +252,7 @@ The unused variable is declared here:
```roc
h1 = {
```
^^
^^
**UNUSED VARIABLE**
@ -264,7 +264,7 @@ The unused variable is declared here:
```roc
h2 = h(
```
^^
^^
**UNUSED VARIABLE**
@ -276,7 +276,7 @@ The unused variable is declared here:
```roc
h3 = A(
```
^^
^^
**UNUSED VARIABLE**
@ -288,7 +288,7 @@ The unused variable is declared here:
```roc
h4 = [
```
^^
^^
**UNUSED VARIABLE**
@ -300,7 +300,7 @@ The unused variable is declared here:
```roc
h5 = (
```
^^
^^
# TOKENS

View file

@ -24,7 +24,7 @@ The module header says that `a!` is exposed, but it is not defined anywhere in t
```roc
a!,
```
^^
^^
You can fix this by either defining `a!` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -34,7 +34,7 @@ The module header says that `b!` is exposed, but it is not defined anywhere in t
```roc
b!
```
^^
^^
You can fix this by either defining `b!` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -29,7 +29,7 @@ The module header says that `a!` is exposed, but it is not defined anywhere in t
```roc
a!,
```
^^
^^
You can fix this by either defining `a!` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -39,7 +39,7 @@ The module header says that `b!` is exposed, but it is not defined anywhere in t
```roc
b!
```
^^
^^
You can fix this by either defining `b!` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -38,7 +38,7 @@ The module header says that `E1` is exposed, but it is not defined anywhere in t
```roc
E1,
```
^^
^^
You can fix this by either defining `E1` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -48,7 +48,7 @@ The module header says that `E2` is exposed, but it is not defined anywhere in t
```roc
E2
```
^^
^^
You can fix this by either defining `E2` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -105,7 +105,7 @@ The unused variable is declared here:
```roc
Z1((a, b)) => a
```
^
^
**UNUSED VARIABLE**
@ -117,7 +117,7 @@ The unused variable is declared here:
```roc
Z2(a, b) => a
```
^
^
**UNUSED VARIABLE**
@ -129,7 +129,7 @@ The unused variable is declared here:
```roc
Z3({ a, b }) => a
```
^
^
**UNUSED VARIABLE**
@ -141,7 +141,7 @@ The unused variable is declared here:
```roc
Z4([a, b]) => a
```
^
^
**UNUSED VARIABLE**
@ -153,7 +153,7 @@ The unused variable is declared here:
```roc
h1 = { h11: x, h12: x, h13: { h131: x, h132: y } }
```
^^
^^
**UNUSED VARIABLE**
@ -165,7 +165,7 @@ The unused variable is declared here:
```roc
h2 = h(x, y)
```
^^
^^
**UNUSED VARIABLE**
@ -177,7 +177,7 @@ The unused variable is declared here:
```roc
h3 = A(x, y)
```
^^
^^
**UNUSED VARIABLE**
@ -189,7 +189,7 @@ The unused variable is declared here:
```roc
h4 = [x, y]
```
^^
^^
**UNUSED VARIABLE**
@ -201,7 +201,7 @@ The unused variable is declared here:
```roc
h5 = (x, y)
```
^^
^^
# TOKENS

View file

@ -23,7 +23,7 @@ The module header says that `E1` is exposed, but it is not defined anywhere in t
```roc
exposes [E1, E2]
```
^^
^^
You can fix this by either defining `E1` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -33,7 +33,7 @@ The module header says that `E2` is exposed, but it is not defined anywhere in t
```roc
exposes [E1, E2]
```
^^
^^
You can fix this by either defining `E2` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -105,7 +105,7 @@ The unused variable is declared here:
```roc
Z1((a, b,)) => a
```
^
^
**UNUSED VARIABLE**
@ -117,7 +117,7 @@ The unused variable is declared here:
```roc
Z2(a, b,) => a
```
^
^
**UNUSED VARIABLE**
@ -129,7 +129,7 @@ The unused variable is declared here:
```roc
Z3({ a, b, }) => a
```
^
^
**UNUSED VARIABLE**
@ -141,7 +141,7 @@ The unused variable is declared here:
```roc
Z4([a, b,]) => a
```
^
^
**UNUSED VARIABLE**
@ -153,7 +153,7 @@ The unused variable is declared here:
```roc
h1 = { h11: x, h12: x, h13: { h131: x, h132: y, }, }
```
^^
^^
**UNUSED VARIABLE**
@ -165,7 +165,7 @@ The unused variable is declared here:
```roc
h2 = h(x, y,)
```
^^
^^
**UNUSED VARIABLE**
@ -177,7 +177,7 @@ The unused variable is declared here:
```roc
h3 = A(x, y,)
```
^^
^^
**UNUSED VARIABLE**
@ -189,7 +189,7 @@ The unused variable is declared here:
```roc
h4 = [x, y,]
```
^^
^^
**UNUSED VARIABLE**
@ -201,7 +201,7 @@ The unused variable is declared here:
```roc
h5 = (x, y,)
```
^^
^^
# TOKENS

View file

@ -23,7 +23,7 @@ The module header says that `E1` is exposed, but it is not defined anywhere in t
```roc
exposes [E1, E2,]
```
^^
^^
You can fix this by either defining `E1` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -33,7 +33,7 @@ The module header says that `E2` is exposed, but it is not defined anywhere in t
```roc
exposes [E1, E2,]
```
^^
^^
You can fix this by either defining `E2` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -197,7 +197,7 @@ Here is the problematic code:
```roc
match a {lue {
```
**PARSE ERROR**
@ -209,7 +209,7 @@ Here is the problematic code:
```roc
1 "for" => 20[1, ] # t
```
**PARSE ERROR**
@ -221,7 +221,7 @@ Here is the problematic code:
```roc
ment
```
**PARSE ERROR**
@ -233,7 +233,7 @@ Here is the problematic code:
```roc
[1, 2, 3,est]123
```
**PARSE ERROR**
@ -245,7 +245,7 @@ Here is the problematic code:
```roc
] 23
```
**PARSE ERROR**
@ -257,7 +257,7 @@ Here is the problematic code:
```roc
3.1 314
```
**PARSE ERROR**
@ -269,7 +269,7 @@ Here is the problematic code:
```roc
(1, 2, 3)123
```
**UNDECLARED TYPE**
@ -306,7 +306,7 @@ This type variable is referenced here:
```roc
(ab) -> # row
```
^^
^^
**UNDECLARED TYPE VARIABLE**
@ -319,7 +319,7 @@ This type variable is referenced here:
```roc
List( b ) #z)
```
^
^
**UNDECLARED TYPE**
@ -410,7 +410,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
s exp0
```
^
^
**UNDEFINED VARIABLE**
@ -421,7 +421,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
s exp0
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -432,7 +432,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r
```
^
^
**UNDEFINED VARIABLE**
@ -443,7 +443,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
x
```
^
^
**UNUSED VARIABLE**
@ -455,7 +455,7 @@ The unused variable is declared here:
```roc
match a {lue {
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -466,7 +466,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
Blue=> {x
```
^
^
**UNUSED VARIABLE**
@ -478,7 +478,7 @@ The unused variable is declared here:
```roc
er #ent
```
^^
^^
**UNDEFINED VARIABLE**
@ -489,7 +489,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
ment
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -501,7 +501,7 @@ The unused variable is declared here:
```roc
[1, 2, 3,est]123
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -512,7 +512,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
nt
```
^^
^^
**UNDECLARED TYPE**
@ -545,7 +545,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
expect blaue
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -556,7 +556,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tag
```
^^^
^^^
**CRASH EXPECTS STRING**
@ -566,7 +566,7 @@ For example: `crash "Something went wrong"`
```roc
)crash ke"Unr!" #)
```
^^^^^^^^
^^^^^^^^
**UNDEFINED VARIABLE**
@ -577,7 +577,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
i= "H, ${d}"
```
^
^
**UNDEFINED VARIABLE**
@ -588,7 +588,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
one(er, ), 456, # two
```
^^^
^^^
**NOT IMPLEMENTED**
@ -604,7 +604,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -615,7 +615,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -626,7 +626,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^
^^^
**DUPLICATE DEFINITION**
@ -637,7 +637,7 @@ The redeclaration is here:
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^
^
But `t` was already defined here:
**fuzz_crash_019.md:88:1:88:2:**
@ -655,7 +655,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -666,7 +666,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^^
^^
**UNDEFINED VARIABLE**
@ -677,7 +677,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
m (
```
^
^
**UNDEFINED VARIABLE**
@ -688,7 +688,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
"World",ag1,
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -699,7 +699,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(ne, tuple),
```
^^
^^
**UNDEFINED VARIABLE**
@ -710,7 +710,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(ne, tuple),
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -721,7 +721,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
b?? 12 > 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 e_fn(arg1)?.od()?.ned()?.recd?
```
^
^
**NOT IMPLEMENTED**
@ -737,7 +737,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r(nu) # xpr
```
^
^
**UNDEFINED VARIABLE**
@ -748,7 +748,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r(nu) # xpr
```
^^
^^
**UNUSED VARIABLE**
@ -760,7 +760,7 @@ The unused variable is declared here:
```roc
w = "d"
```
^
^
**UNUSED VARIABLE**
@ -772,7 +772,7 @@ The unused variable is declared here:
```roc
i= "H, ${d}"
```
^
^
**UNUSED VARIABLE**
@ -784,7 +784,7 @@ The unused variable is declared here:
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^
^^
**UNDECLARED TYPE**
@ -806,7 +806,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
foo == 1
```
^^^
^^^
**UNDEFINED VARIABLE**

View file

@ -197,7 +197,7 @@ Here is the problematic code:
```roc
match a {lue {
```
**PARSE ERROR**
@ -209,7 +209,7 @@ Here is the problematic code:
```roc
1 "for" => 20[1, ] # t
```
**PARSE ERROR**
@ -221,7 +221,7 @@ Here is the problematic code:
```roc
ment
```
**PARSE ERROR**
@ -233,7 +233,7 @@ Here is the problematic code:
```roc
[1, 2, 3,est]123
```
**PARSE ERROR**
@ -245,7 +245,7 @@ Here is the problematic code:
```roc
] 23
```
**PARSE ERROR**
@ -257,7 +257,7 @@ Here is the problematic code:
```roc
3.1 314
```
**PARSE ERROR**
@ -269,7 +269,7 @@ Here is the problematic code:
```roc
(1, 2, 3)123
```
**UNDECLARED TYPE**
@ -306,7 +306,7 @@ This type variable is referenced here:
```roc
(ab) -> # row
```
^^
^^
**UNDECLARED TYPE VARIABLE**
@ -319,7 +319,7 @@ This type variable is referenced here:
```roc
List( b ) #z)
```
^
^
**UNDECLARED TYPE**
@ -410,7 +410,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
if num {
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -421,7 +421,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
s exp0
```
^
^
**UNDEFINED VARIABLE**
@ -432,7 +432,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
s exp0
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -443,7 +443,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r
```
^
^
**UNDEFINED VARIABLE**
@ -454,7 +454,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
x
```
^
^
**UNUSED VARIABLE**
@ -466,7 +466,7 @@ The unused variable is declared here:
```roc
match a {lue {
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -477,7 +477,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
Blue=> {x
```
^
^
**UNUSED VARIABLE**
@ -489,7 +489,7 @@ The unused variable is declared here:
```roc
er #ent
```
^^
^^
**UNDEFINED VARIABLE**
@ -500,7 +500,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
ment
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -512,7 +512,7 @@ The unused variable is declared here:
```roc
[1, 2, 3,est]123
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -523,7 +523,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
nt
```
^^
^^
**UNDECLARED TYPE**
@ -556,7 +556,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
expect blaue
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -567,7 +567,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tag
```
^^^
^^^
**CRASH EXPECTS STRING**
@ -577,7 +577,7 @@ For example: `crash "Something went wrong"`
```roc
)crash ke"Unr!" #)
```
^^^^^^^^
^^^^^^^^
**UNDEFINED VARIABLE**
@ -588,7 +588,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
i= "H, ${d}"
```
^
^
**UNDEFINED VARIABLE**
@ -599,7 +599,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
one(er, ), 456, # two
```
^^^
^^^
**NOT IMPLEMENTED**
@ -615,7 +615,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -626,7 +626,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -637,7 +637,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^^
^^^
**DUPLICATE DEFINITION**
@ -648,7 +648,7 @@ The redeclaration is here:
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^
^
But `t` was already defined here:
**fuzz_crash_020.md:88:1:88:2:**
@ -666,7 +666,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -677,7 +677,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
t = (123, "World", tag, O, (nd, t), [1, 2, 3])
```
^^
^^
**UNDEFINED VARIABLE**
@ -688,7 +688,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
m (
```
^
^
**UNDEFINED VARIABLE**
@ -699,7 +699,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
"World",ag1,
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -710,7 +710,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(ne, tuple),
```
^^
^^
**UNDEFINED VARIABLE**
@ -721,7 +721,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(ne, tuple),
```
^^^^^
^^^^^
**UNDEFINED VARIABLE**
@ -732,7 +732,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
b?? 12 > 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 e_fn(arg1)?.od()?.ned()?.recd?
```
^
^
**NOT IMPLEMENTED**
@ -748,7 +748,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r(nu) # xpr
```
^
^
**UNDEFINED VARIABLE**
@ -759,7 +759,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
r(nu) # xpr
```
^^
^^
**UNUSED VARIABLE**
@ -771,7 +771,7 @@ The unused variable is declared here:
```roc
w = "d"
```
^
^
**UNUSED VARIABLE**
@ -783,7 +783,7 @@ The unused variable is declared here:
```roc
i= "H, ${d}"
```
^
^
**UNUSED VARIABLE**
@ -795,7 +795,7 @@ The unused variable is declared here:
```roc
rd = { foo: 123, bar: "H", baz: tag, qux: Ok(world),ned }
```
^^
^^
**UNDECLARED TYPE**
@ -817,7 +817,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
foo == 1
```
^^^
^^^
**UNDEFINED VARIABLE**

View file

@ -285,7 +285,7 @@ Here is the problematic code:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^
^
**PARSE ERROR**
@ -297,7 +297,7 @@ Here is the problematic code:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^^
^^
**UNEXPECTED TOKEN IN EXPRESSION**
@ -309,7 +309,7 @@ Here is the problematic code:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^
^
**UNEXPECTED TOKEN IN EXPRESSION**
@ -321,7 +321,7 @@ Here is the problematic code:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^
^
**PARSE ERROR**
@ -333,7 +333,7 @@ Here is the problematic code:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^^
^^
**UNDECLARED TYPE**
@ -366,7 +366,7 @@ This type is referenced here:
```roc
Bar, # Comment after pattern tuple item
```
^^^
^^^
**UNDECLARED TYPE**
@ -377,7 +377,7 @@ This type is referenced here:
```roc
Baz, # Another after pattern tuple item
```
^^^
^^^
**UNDECLARED TYPE**
@ -410,7 +410,7 @@ This type is referenced here:
```roc
foo : Ok(a), # After field
```
^^
^^
**UNDECLARED TYPE**
@ -421,7 +421,7 @@ This type is referenced here:
```roc
bar : Something, # After last field
```
^^^^^^^^^
^^^^^^^^^
**UNDECLARED TYPE**
@ -432,7 +432,7 @@ This type is referenced here:
```roc
Ok(a), # Comment after pattern record field
```
^^
^^
**UNDECLARED TYPE**
@ -443,7 +443,7 @@ This type is referenced here:
```roc
bar : Something, # Another after pattern record field
```
^^^^^^^^^
^^^^^^^^^
**MODULE NOT FOUND**
@ -531,7 +531,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func() # After debug expr
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -543,7 +543,7 @@ The unused variable is declared here:
```roc
lower # After pattern comment
```
^^^^^
^^^^^
**UNUSED VARIABLE**
@ -611,7 +611,7 @@ The unused variable is declared here:
```roc
{ foo: 1, bar: 2, ..rest } => 12->add(34)
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -645,7 +645,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNDEFINED VARIABLE**
@ -656,7 +656,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
blah == 1 # Comment after expect statement
```
^^^^
^^^^
**UNDECLARED TYPE**
@ -678,7 +678,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
expect blah == 1
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -689,7 +689,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func(
```
^^^^^^^^^
^^^^^^^^^
**NOT IMPLEMENTED**
@ -704,7 +704,7 @@ This type annotation is malformed or contains invalid syntax.
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^
**UNDEFINED VARIABLE**
@ -715,7 +715,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tuple = (123, "World", tag, Ok(world), (nested, tuple), [1, 2, 3])
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -726,7 +726,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tag1,
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -737,7 +737,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(nested, tuple),
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -748,7 +748,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bin_op_result = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^
^^^
**NOT IMPLEMENTED**
@ -769,7 +769,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
Num.toStr(number) # Comment after string interpolation expr
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -781,7 +781,7 @@ The unused variable is declared here:
```roc
tag_with_payload = Ok(number)
```
^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -793,7 +793,7 @@ The unused variable is declared here:
```roc
interpolated = "Hello, ${world}"
```
^^^^^^^^^^^^
^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -805,7 +805,7 @@ The unused variable is declared here:
```roc
list = [
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -817,7 +817,7 @@ The unused variable is declared here:
```roc
record = { foo: 123, bar: "Hello", ;az: tag, qux: Ok(world), punned }
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -829,7 +829,7 @@ The unused variable is declared here:
```roc
multiline_tuple = (
```
^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -841,7 +841,7 @@ The unused variable is declared here:
```roc
bin_op_result = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^^^^^^^^^^^
^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -853,7 +853,7 @@ The unused variable is declared here:
```roc
static_dispatch_style = some_fn(arg1)?.static_dispatch_method()?.next_static_dispatch_method()?.record_field?
```
^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
**UNDECLARED TYPE**

View file

@ -304,7 +304,7 @@ Here is the problematic code:
```roc
add_one(
```
^^^^^^^
^^^^^^^
**UNEXPECTED TOKEN IN EXPRESSION**
@ -316,7 +316,7 @@ Here is the problematic code:
```roc
), 456, # ee
```
^
^
**UNDECLARED TYPE**
@ -373,7 +373,7 @@ This type is referenced here:
```roc
bar : Som# Afld
```
^^^
^^^
**UNDECLARED TYPE**
@ -384,7 +384,7 @@ This type is referenced here:
```roc
bar : Som
```
^^^
^^^
**UNDECLARED TYPE**
@ -473,7 +473,7 @@ This type is referenced here:
```roc
Bar, #
```
^^^
^^^
**UNDECLARED TYPE**
@ -484,7 +484,7 @@ This type is referenced here:
```roc
Baz, #m
```
^^^
^^^
**EMPTY TUPLE NOT ALLOWED**
@ -505,7 +505,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
x x
```
^
^
**UNDEFINED VARIABLE**
@ -516,7 +516,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
x x
```
^
^
**UNUSED VARIABLE**
@ -528,7 +528,7 @@ The unused variable is declared here:
```roc
match a {lue | Red => {
```
^^^
^^^
**UNDEFINED VARIABLE**
@ -539,7 +539,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
=> ment
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -602,7 +602,7 @@ The unused variable is declared here:
```roc
{ foo: 1, bar: 2, ..rest } => 12->add(34)
```
^^^^^^
^^^^^^
**NOT IMPLEMENTED**
@ -624,7 +624,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNDEFINED VARIABLE**
@ -635,7 +635,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
blah == 1 # Commnt
```
^^^^
^^^^
**UNDECLARED TYPE**
@ -657,7 +657,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
expect blah == 1
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -668,7 +668,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func(
```
^^^^^^^^^
^^^^^^^^^
**NOT IMPLEMENTED**
@ -684,7 +684,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
record = { foo: 123, bar: "Hello", baz: tag, qux: Ok(world), punned }
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -695,7 +695,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tuple = (123, "World", tag, Ok(world), (nested, tuple), [1, 2, 3])
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -706,7 +706,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tag1,
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -717,7 +717,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(nested, tuple),
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -728,7 +728,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bsult = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^
^^^
**NOT IMPLEMENTED**
@ -744,7 +744,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
Num.toStr(number) # on expr
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -756,7 +756,7 @@ The unused variable is declared here:
```roc
tag_with = Ok(number)
```
^^^^^^^^
^^^^^^^^
**UNUSED VARIABLE**
@ -768,7 +768,7 @@ The unused variable is declared here:
```roc
ited = "Hello, ${world}"
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -780,7 +780,7 @@ The unused variable is declared here:
```roc
list = [
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -792,7 +792,7 @@ The unused variable is declared here:
```roc
record = { foo: 123, bar: "Hello", baz: tag, qux: Ok(world), punned }
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -804,7 +804,7 @@ The unused variable is declared here:
```roc
m_tuple = (
```
^^^^^^^
^^^^^^^
**UNUSED VARIABLE**
@ -816,7 +816,7 @@ The unused variable is declared here:
```roc
bsult = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^^^
^^^^^
**UNUSED VARIABLE**
@ -828,7 +828,7 @@ The unused variable is declared here:
```roc
stale = some_fn(arg1)?.statod()?.ned()?.recd?
```
^^^^^
^^^^^
**UNDECLARED TYPE**
@ -924,7 +924,7 @@ This expression is used in an unexpected way:
```roc
stale = some_fn(arg1)?.statod()?.ned()?.recd?
```
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The type annotation says it should have the type:
_List(Error) -> Result({ }, _d)_

View file

@ -62,7 +62,7 @@ Here is the problematic code:
```roc
{ # d
```
^
^
**PARSE ERROR**
@ -74,7 +74,7 @@ Here is the problematic code:
```roc
n! : List(Str) => {}, # ure
```
^^^
^^^
**PARSE ERROR**
@ -98,7 +98,7 @@ Here is the problematic code:
```roc
n! : List(Str) => {}, # ure
```
^^^^
^^^^
**PARSE ERROR**
@ -110,7 +110,7 @@ Here is the problematic code:
```roc
n! : List(Str) => {}, # ure
```
^
^
**PARSE ERROR**
@ -122,7 +122,7 @@ Here is the problematic code:
```roc
n! : List(Str) => {}, # ure
```
^
^
**PARSE ERROR**
@ -134,7 +134,7 @@ Here is the problematic code:
```roc
n! : List(Str) => {}, # ure
```
^
^
**PARSE ERROR**
@ -146,7 +146,7 @@ Here is the problematic code:
```roc
} #Ce
```
^
^
**PARSE ERROR**
@ -158,7 +158,7 @@ Here is the problematic code:
```roc
exposes #rd
```
^^^^^^^
^^^^^^^
**PARSE ERROR**
@ -170,7 +170,7 @@ Here is the problematic code:
```roc
[ #
```
^
^
**PARSE ERROR**
@ -182,7 +182,7 @@ Here is the problematic code:
```roc
] # Cse
```
^
^
**PARSE ERROR**
@ -194,7 +194,7 @@ Here is the problematic code:
```roc
packages # Cd
```
^^^^^^^^
^^^^^^^^
**PARSE ERROR**
@ -206,7 +206,7 @@ Here is the problematic code:
```roc
vides # Cd
```
^^^^^
^^^^^
**PARSE ERROR**
@ -218,7 +218,7 @@ Here is the problematic code:
```roc
{ # pen
```
^
^
**UNEXPECTED TOKEN IN TYPE ANNOTATION**
@ -290,7 +290,7 @@ Here is the problematic code:
```roc
pkg: "..l", mmen } # Cose
```
^
^
**PARSE ERROR**
@ -302,7 +302,7 @@ Here is the problematic code:
```roc
provides # Cd
```
^^^^^^^^
^^^^^^^^
**PARSE ERROR**
@ -314,7 +314,7 @@ Here is the problematic code:
```roc
[ Ok(world), (n # pen
```
^
^
**PARSE ERROR**
@ -338,7 +338,7 @@ Here is the problematic code:
```roc
[ Ok(world), (n # pen
```
^^
^^
**PARSE ERROR**
@ -350,7 +350,7 @@ Here is the problematic code:
```roc
[ Ok(world), (n # pen
```
^
^
**PARSE ERROR**
@ -362,7 +362,7 @@ Here is the problematic code:
```roc
[ Ok(world), (n # pen
```
^
^
**PARSE ERROR**
@ -398,7 +398,7 @@ Here is the problematic code:
```roc
]
```
^
^
**MALFORMED TYPE**

View file

@ -45,7 +45,7 @@ Here is the problematic code:
```roc
[ .
```
^
^
**PARSE ERROR**
@ -129,7 +129,7 @@ Here is the problematic code:
```roc
provides # Cd
```
^^^^^^^^
^^^^^^^^
**PARSE ERROR**
@ -141,7 +141,7 @@ Here is the problematic code:
```roc
[ # pen
```
^
^
**PARSE ERROR**
@ -177,7 +177,7 @@ Here is the problematic code:
```roc
]
```
^
^
# TOKENS

View file

@ -28,7 +28,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^^
^^
**PARSE ERROR**
@ -40,7 +40,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**PARSE ERROR**
@ -52,7 +52,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**PARSE ERROR**
@ -64,7 +64,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**PARSE ERROR**
@ -76,7 +76,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^^^^
^^^^
**PARSE ERROR**
@ -88,7 +88,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**PARSE ERROR**
@ -100,7 +100,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**PARSE ERROR**
@ -112,7 +112,7 @@ Here is the problematic code:
```roc
G if 0{}else||0
```
^
^
**MODULE NOT FOUND**

View file

@ -42,7 +42,7 @@ The unused variable is declared here:
```roc
world = "World"
```
^^^^^
^^^^^
# TOKENS

View file

@ -24,7 +24,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bool
```
^^^^
^^^^
# TOKENS

View file

@ -26,7 +26,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bool # Comment after cond
```
^^^^
^^^^
# TOKENS

View file

@ -24,7 +24,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bool # Comment after cond
```
^^^^
^^^^
# TOKENS

View file

@ -22,7 +22,7 @@ The module header says that `something` is exposed, but it is not defined anywhe
```roc
something, # Comment after exposed item
```
^^^^^^^^^
^^^^^^^^^
You can fix this by either defining `something` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -32,7 +32,7 @@ The module header says that `SomeType` is exposed, but it is not defined anywher
```roc
SomeType, # Comment after final exposed item
```
^^^^^^^^
^^^^^^^^
You can fix this by either defining `SomeType` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -20,7 +20,7 @@ The module header says that `something` is exposed, but it is not defined anywhe
```roc
[something, SomeType]
```
^^^^^^^^^
^^^^^^^^^
You can fix this by either defining `something` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -30,7 +30,7 @@ The module header says that `SomeType` is exposed, but it is not defined anywher
```roc
[something, SomeType]
```
^^^^^^^^
^^^^^^^^
You can fix this by either defining `SomeType` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -20,7 +20,7 @@ The module header says that `something` is exposed, but it is not defined anywhe
```roc
[something, SomeType,]
```
^^^^^^^^^
^^^^^^^^^
You can fix this by either defining `something` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -30,7 +30,7 @@ The module header says that `SomeType` is exposed, but it is not defined anywher
```roc
[something, SomeType,]
```
^^^^^^^^
^^^^^^^^
You can fix this by either defining `SomeType` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -25,7 +25,7 @@ The module header says that `something` is exposed, but it is not defined anywhe
```roc
something,
```
^^^^^^^^^
^^^^^^^^^
You can fix this by either defining `something` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -35,7 +35,7 @@ The module header says that `SomeType` is exposed, but it is not defined anywher
```roc
SomeType,
```
^^^^^^^^
^^^^^^^^
You can fix this by either defining `SomeType` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -26,7 +26,7 @@ The module header says that `something` is exposed, but it is not defined anywhe
```roc
something, # Comment after exposed item
```
^^^^^^^^^
^^^^^^^^^
You can fix this by either defining `something` in this module, or by removing it from the list of exposed values.
**EXPOSED BUT NOT DEFINED**
@ -36,7 +36,7 @@ The module header says that `SomeType` is exposed, but it is not defined anywher
```roc
SomeType, # Comment after last exposed item
```
^^^^^^^^
^^^^^^^^
You can fix this by either defining `SomeType` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -37,7 +37,7 @@ The module header says that `foo` is exposed, but it is not defined anywhere in
```roc
foo, # Comment after exposed item
```
^^^
^^^
You can fix this by either defining `foo` in this module, or by removing it from the list of exposed values.
# TOKENS

View file

@ -67,7 +67,7 @@ Here is the problematic code:
```roc
"\u",
```
**UNEXPECTED TOKEN IN STRING**
@ -79,7 +79,7 @@ Here is the problematic code:
```roc
"\u)",
```
**UNEXPECTED TOKEN IN STRING**
@ -91,7 +91,7 @@ Here is the problematic code:
```roc
"\u(",
```
**UNEXPECTED TOKEN IN STRING**
@ -103,7 +103,7 @@ Here is the problematic code:
```roc
"\u()",
```
**UNEXPECTED TOKEN IN STRING**
@ -115,7 +115,7 @@ Here is the problematic code:
```roc
"\u(K)",
```
**PARSE ERROR**

View file

@ -25,7 +25,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func(
```
^^^^^^^^^
^^^^^^^^^
**UNDEFINED VARIABLE**
@ -36,7 +36,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
a, # This is a comment
```
^
^
**UNDEFINED VARIABLE**
@ -47,7 +47,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
b,
```
^
^
# TOKENS

View file

@ -301,7 +301,7 @@ This type is referenced here:
```roc
Bar, # Comment after pattern tuple item
```
^^^
^^^
**UNDECLARED TYPE**
@ -312,7 +312,7 @@ This type is referenced here:
```roc
Baz, # Another after pattern tuple item
```
^^^
^^^
**UNDECLARED TYPE**
@ -345,7 +345,7 @@ This type is referenced here:
```roc
foo : Ok(a), # After field
```
^^
^^
**UNDECLARED TYPE**
@ -356,7 +356,7 @@ This type is referenced here:
```roc
bar : Something, # After last field
```
^^^^^^^^^
^^^^^^^^^
**UNDECLARED TYPE**
@ -367,7 +367,7 @@ This type is referenced here:
```roc
Ok(a), # Comment after pattern record field
```
^^
^^
**UNDECLARED TYPE**
@ -378,7 +378,7 @@ This type is referenced here:
```roc
bar : Something, # Another after pattern record field
```
^^^^^^^^^
^^^^^^^^^
**MODULE NOT FOUND**
@ -466,7 +466,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func() # After debug expr
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -478,7 +478,7 @@ The unused variable is declared here:
```roc
lower # After pattern comment
```
^^^^^
^^^^^
**UNUSED VARIABLE**
@ -546,7 +546,7 @@ The unused variable is declared here:
```roc
{ foo: 1, bar: 2, ..rest } => 12->add(34)
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -580,7 +580,7 @@ The unused variable is declared here:
```roc
b,
```
^
^
**UNDEFINED VARIABLE**
@ -591,7 +591,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
blah == 1 # Comment after expect statement
```
^^^^
^^^^
**UNDECLARED TYPE**
@ -613,7 +613,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
expect blah == 1
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -624,7 +624,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
some_func(
```
^^^^^^^^^
^^^^^^^^^
**NOT IMPLEMENTED**
@ -640,7 +640,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
record = { foo: 123, bar: "Hello", baz: tag, qux: Ok(world), punned }
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -651,7 +651,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tuple = (123, "World", tag, Ok(world), (nested, tuple), [1, 2, 3])
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -662,7 +662,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
tag1,
```
^^^^
^^^^
**UNDEFINED VARIABLE**
@ -673,7 +673,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
(nested, tuple),
```
^^^^^^
^^^^^^
**UNDEFINED VARIABLE**
@ -684,7 +684,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
bin_op_result = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^
^^^
**NOT IMPLEMENTED**
@ -705,7 +705,7 @@ Is there an `import` or `exposing` missing up-top?
```roc
Num.toStr(number) # Comment after string interpolation expr
```
^^^^^^^^^
^^^^^^^^^
**UNUSED VARIABLE**
@ -717,7 +717,7 @@ The unused variable is declared here:
```roc
tag_with_payload = Ok(number)
```
^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -729,7 +729,7 @@ The unused variable is declared here:
```roc
interpolated = "Hello, ${world}"
```
^^^^^^^^^^^^
^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -741,7 +741,7 @@ The unused variable is declared here:
```roc
list = [
```
^^^^
^^^^
**UNUSED VARIABLE**
@ -753,7 +753,7 @@ The unused variable is declared here:
```roc
record = { foo: 123, bar: "Hello", baz: tag, qux: Ok(world), punned }
```
^^^^^^
^^^^^^
**UNUSED VARIABLE**
@ -765,7 +765,7 @@ The unused variable is declared here:
```roc
multiline_tuple = (
```
^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -777,7 +777,7 @@ The unused variable is declared here:
```roc
bin_op_result = Err(foo) ?? 12 > 5 * 5 or 13 + 2 < 5 and 10 - 1 >= 16 or 12 <= 3 / 5
```
^^^^^^^^^^^^^
^^^^^^^^^^^^^
**UNUSED VARIABLE**
@ -789,7 +789,7 @@ The unused variable is declared here:
```roc
static_dispatch_style = some_fn(arg1)?.static_dispatch_method()?.next_static_dispatch_method()?.record_field?
```
^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
**UNDECLARED TYPE**