Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
quchen
11y ago
0 comments
Save
Share
For reverse sorting, there's a type that does specifically that.
sortBy (comparing (Down . snd))
See
http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Or...
0 comments
1 comments · 1 top-level
top
newest
oldest
evincarofautumn
11y ago
True, but I prefer not to use typeclasses in that way.
j
/
k
navigate · click thread line to collapse