on master help sign in
Fix issue unifying comparables brought up by Max on the lists

A flexible comparable should be able to unify with another comparable

commit3b27395e62783d815edad42d6d1961d95099c4a9 authorEvan Czaplicki <info@elm-lang.org> dateSat 10 Aug 2013, 14:20 (13 years ago) parent9bba47c
1 file changed+1−1
compiler/Type/Unify.hs+1−1
compiler/Type/Unify.hs+1−1
@@ -85,7 +85,7 @@ actuallyUnify span variable1 variable2 = do
8585 "Int, Float, Char, or a list or tuple of comparables."
8686
8787 unifyComparable var name
88− | name `elem` ["Int","Float","Char"] = flexAndUnify var
88+ | name `elem` ["Int","Float","Char","comparable"] = flexAndUnify var
8989 | otherwise = comparableError ""
9090
9191 unifyComparableStructure varSuper varFlex =