record order bug fix

This commit is contained in:
aarne
2006-10-11 20:44:18 +00:00
parent 72699f446f
commit c3cefb4d48
2 changed files with 4 additions and 5 deletions

View File

@@ -156,9 +156,6 @@ redTerm :: Type -> Err G.Exp
redTerm t = return $ rtExp t
-- to normalize records and record types
sortByLabel :: (a -> Label) -> [a] -> [a]
sortByLabel f = sortBy (\ x y -> compare (f x) (f y))
sortByFst :: Ord a => [(a,b)] -> [(a,b)]
sortByFst = sortBy (\ x y -> compare (fst x) (fst y))