Corrected a mistake in the last patch

This commit is contained in:
Neil Brown 2009-04-08 16:34:04 +00:00
parent 6814ac2679
commit cc4720832b

View File

@ -58,7 +58,7 @@ ordFor' typeName x = process $ map processConstr $ dataTypeConstrs $ dataTypeOf
++ concat [ [ " compare (" ++ name ++ headL ++ ") (" ++ name ++ headR ++ ") = " ++
--Shortcut:
if null comparisons then "EQ" else
"combineCompare [" ++ joinWith "," comparisons) ++ "]"
"combineCompare [" ++ joinWith "," comparisons ++ "]"
] ++ if isLast then [] else
[ " compare (" ++ name ++ " {}) _ = LT"
, " compare _ (" ++ name ++ " {}) = GT"]