Elm Exactly
Results /

elm-error-catalogue

requests for a better error report (tag `error-message`): what a compiler's report says or how it is laid out, which A Standard Definition of Elm? does not define. Where such a request rests on a program the book rejects, a test in `elm` checks the rejection

Discussions of this project and its tests ↓

Showing 17 of 17 tests. Hover over a badge for the reason.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
ErrorMessage1043PortErrorObjectObjectTestXFAILelm19-bugelm-unspeccederror-message
A value of the wrong type arriving on an incoming port crashes the program with a message that describes the value.
failfailfailfail
ErrorMessage2012NameClashCaretSpacesTest (must not compile)elm19-bug-fixerror-message
The NAME CLASH report underlines with the wrong carets and hundreds of trailing spaces.
failpasspasspass
ErrorMessage2104IfBranchWrongTypeReportedTest (must not compile)elm19-bugerror-message
The TYPE MISMATCH report for `if` branches with different numbers of arguments must show the first branch's own type, not a type that neither branch has.
failfailfailfail
ErrorMessage2107PipeIfInfiniteTypeReportedTest (must not compile)elm19-bugerror-message
A TYPE MISMATCH report for an `if` piped with `|>` must not show an infinite type `Thing ∞` when no type in the program is infinite.
failfailfailfail
ErrorMessage2147NameClashWhitespaceTest (must not compile)elm19-bug-fixerror-message
The NAME CLASH report for a pattern that binds the same name twice prints tens of thousands of spaces.
failpasspasspass
ErrorMessage2302NameClashListPatternWhitespaceTest (must not compile)elm19-bug-fixerror-message
The NAME CLASH report for a list pattern `[ a, a ]` prints 65532 spaces.
failpasspasspass
ErrorMessagesIssue103ImportedModuleWithoutModuleLineTest (must not compile)elm19-compile-errorerror-message
Importing a module whose file has no `module` line is reported as MODULE NAME MISSING.
passpasspasspass
ErrorMessagesIssue203ListWithoutArgumentTest (must not compile)elm19-compile-errorerror-message
`List` used without its type argument in an annotation is reported as TOO FEW ARGS.
passpasspasspass
ErrorMessagesIssue228ComparableListHintTest (must not compile)elm19-bugerror-message
A Set of lists of a custom type is rejected (the custom type is not comparable), but the hint blames the List.
failfailfailfail
ErrorMessagesIssue234DivTooManyArgsTest (must not compile)elm19-compile-errorerror-message
`Html.div` applied to four arguments is reported as TOO MANY ARGS, saying it expects 2.
passpasspasspass
ErrorMessagesIssue288ConsOntoListAliasTest (must not compile)elm19-bugerror-message
Consing an element of the wrong type onto a value whose type is an alias of a List (`type alias ListOfInts = List Int`) produces a second report claiming the alias is not a list.
failfailfailfail
ErrorMessagesIssue306AmbiguousImportedTypeTest (must not compile)elm19-bugerror-message
Two imports that both expose a type of the same name (`Decoder` from Json.Decode and from Bytes.Decode) make an unqualified use of that type ambiguous, but the compiler silently picks one of them.
failfailfailfail
ErrorMessagesIssue322LetRecursiveRecordLambdaTestelm19-bugerror-message
A `let`-bound record whose field is a lambda that refers back to the record (through another lambda) is rejected as an infinite loop, although the recursion is well founded.
failfailfailfail
ErrorMessagesIssue34UnexposedQualifiedTypeTest (must not compile)elm19-compile-errorerror-message
A qualified type that its module does not expose is reported as a NAMING ERROR naming the module.
passpasspasspass
ErrorMessagesIssue356UnicodeEscapeBadSuggestionTest (must not compile)elm19-bugerror-message
For the too-short unicode escape `"\u{01}"` the compiler suggests `\u{001}`, which is also too short (and for `\u{001}` it suggests `\u{01}` back).
failfailfailfail
ErrorMessagesIssue361ExtensibleAliasOfUnitCrashTest (must not compile)elm19-bugerror-message
An extensible-record type alias applied to a non-record type (`ExtRec ()`) crashes the compiler instead of reporting a type error.
failfailfailfail
ErrorMessagesIssue372EmptyRecordUpdateExtraCommaTest (must not compile)elm19-bug-fixerror-message
A record update with no fields, `{ key | }`, is reported as an EXTRA COMMA, although the program has no comma at all.
failpasspasspass

Discussions

Discuss this project·Search the discussions on GitHub

Discussions are on GitHub; one about this project has [p:elm-error-catalogue] in its title.