@@ -39,6 +39,7 @@ data Reason
39 = MessyFields [String] [String]
39 = MessyFields [String] [String]
40 | IntFloat
40 | IntFloat
41 | TooLongComparableTuple Int
41 | TooLongComparableTuple Int
42 | BadVar (Maybe VarType) (Maybe VarType)
43 | BadVar (Maybe VarType) (Maybe VarType)
@@ -591,6 +592,9 @@ flipReason reason =
591 TooLongComparableTuple len ->
592 TooLongComparableTuple len ->
592 TooLongComparableTuple len
593 TooLongComparableTuple len
594 BadVar left right ->
598 BadVar left right ->
595 BadVar right left
599 BadVar right left
@@ -618,6 +622,11 @@ reasonToString reason =
618 "Although tuples are comparable, this is currently only supported\
622 "Although tuples are comparable, this is currently only supported\
619 \ for tuples with 6 or fewer entries, not " ++ show len ++ "."
623 \ for tuples with 6 or fewer entries, not " ++ show len ++ "."
627+ "It looks like a function needs " ++ show num ++ " more "
628+ ++ (if num == 1 then "argument" else "arguments") ++ "."
621 BadVar (Just Comparable) _ ->
630 BadVar (Just Comparable) _ ->
622 go "Only ints, floats, chars, strings, lists, and tuples are comparable."
631 go "Only ints, floats, chars, strings, lists, and tuples are comparable."