Corrected a mistake in the last patch
This commit is contained in:
parent
6814ac2679
commit
cc4720832b
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user