1
0
forked from GitHub/gf-core

record order bug fix

This commit is contained in:
aarne
2006-10-11 20:44:18 +00:00
parent 9747837a5a
commit 5c4438409d
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))