You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick Summary:
There are some inconsistencies when comparing records types and records types built from extensible record aliases.
SSCCE
moduleBugexposing (x, y, z)
importHtmlexposing (Html)
type alias Named a ={ a | name :String}x:Named { name : String }
x ={ name =""}y:Named {}
y ={ name =""}z: { name : String }
z ={ name =""}
Then in elm repl:
> import Bug exposing (..)> x == z
True:Bool> y == z
True:Bool> x == y
-- TYPE MISMATCH ---------------------------------------------------------- REPLI need both sides of (==) to be the same type:4| x == y
^^^^^^The left side of (==) is:Named{ name :String}But the right side is:Named{}Different types can never be equal though!Which side is messed up?