-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patching elm/[email protected] with elm-janitor/core@084fa2b leads to a compiler error #1
Comments
The problem seems to be this PR, no idea yet why it breaks the compilation https://github.com/elm/core/pull/970/files Replacing |
I now narrowed the problem down to the change of Before the patch, it looks like this: isUpper : Char -> Bool
isUpper char =
let
code =
toCode char
in
code <= 0x5A && 0x41 <= code and after the patch in PR 970 of elm/core it is changed to this: isUpper : Char -> Bool
isUpper char =
(char == Char.toUpper char)
&& (char /= Char.toLower char) Which fails with the error shown in the first comment. A minimal reproducible change to isUpper : Char -> Bool
isUpper char =
let
code =
toCode char
up =
toUpper char
isSame =
up == char
in
code <= 0x5A && 0x41 <= code I also tried to replace And I also tested it on a Macbook on the off chance that it is only my Linux system that behaves weirdly. |
@rupertlssmith can you maybe test it locally on your machine if you get the same error when patching elm/core? Reproduction steps:
up =
toUpper char
isSame =
up == char
|
Yes, I get the same error. That is a strange one, no idea why that change should cause that error. I also tried with this code inserted into isUpper instead:
Which makes me think that it is the user of Will link the original PR to this issue, and revert it out. |
Important information from Martin Janiczek:
This lead to @rupertlssmith finding the issue by running
This change fixes the issue: - import Basics exposing (Bool, Int, (&&), (||), (>=), (<=))
+ import Basics exposing (Bool, Int, (&&), (||), (>=), (<=), (==), (/=))` |
Applying https://github.com/elm-janitor/core/tree/stack-1.0.5 with the current commit elm-janitor/core@084fa2b leads to an error during compilation:
The text was updated successfully, but these errors were encountered: