compiler
compiler copied to clipboard
Use a better error when using `true` and `false` instead of `True` and `False`
Quick Summary: ???
When using true
instead of True
, you get this error:
> true
-- NAMING ERROR ---------------------------------------------------------- /repl
I cannot find a `true` variable:
3| true
^^^^
These names seem close though:
e
tan
turns
abs
Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.
It should probably recommend using True
or False
instead.
SSCCE
True
- Elm: 0.19.1 (I think?)
- Browser: Firefox
- Operating System: Pop!_OS
Additional Details
N/A
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions in a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.
In general, recommending imported exposed variants as well is helpful