summaryrefslogtreecommitdiff
path: root/libraries/base/tests/list002.hs
blob: 188ff8953d2cd08c569d0d094585ef2e00a2de35 (plain)
1
2
3
4
5
6
-- !!! Test that List.sortBy is stable.

import Data.List

main = print (sortBy (\(a,b) (a',b')->compare a a')
		([1,1,1,1,1,1,1,1,1,1]`zip`[1..10]))