diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-18 23:22:00 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-18 23:22:00 +0200 |
commit | 8851d078e8f0dec420ccfd0219ad5d8d4d912f7c (patch) | |
tree | 52443871b9e1104bacf9fd23dc05363979bb911e /Model.hs | |
parent | faf009aca16ba1e384fd5da2d6306d1379e36de3 (diff) | |
download | bar-8851d078e8f0dec420ccfd0219ad5d8d4d912f7c.tar bar-8851d078e8f0dec420ccfd0219ad5d8d4d912f7c.tar.gz bar-8851d078e8f0dec420ccfd0219ad5d8d4d912f7c.tar.bz2 bar-8851d078e8f0dec420ccfd0219ad5d8d4d912f7c.tar.xz bar-8851d078e8f0dec420ccfd0219ad5d8d4d912f7c.zip |
If it expires, it's on top
Diffstat (limited to 'Model.hs')
-rw-r--r-- | Model.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -72,7 +72,8 @@ withTypes vals = do | |||
72 | instance Ord Item where | 72 | instance Ord Item where |
73 | x `compare` y = mconcat cmprs | 73 | x `compare` y = mconcat cmprs |
74 | where | 74 | where |
75 | cmprs = [ comparing itemOpened x y | 75 | cmprs = [ comparing (isNever . itemExpires) x y |
76 | , comparing itemOpened x y | ||
76 | , comparing itemExpires x y | 77 | , comparing itemExpires x y |
77 | , (comparing not `on` itemRunningLow) x y | 78 | , (comparing not `on` itemRunningLow) x y |
78 | , comparing itemKind x y | 79 | , comparing itemKind x y |