summaryrefslogtreecommitdiff
path: root/Model.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-04-18 23:22:00 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-04-18 23:22:00 +0200
commit8851d078e8f0dec420ccfd0219ad5d8d4d912f7c (patch)
tree52443871b9e1104bacf9fd23dc05363979bb911e /Model.hs
parentfaf009aca16ba1e384fd5da2d6306d1379e36de3 (diff)
downloadbar-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.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Model.hs b/Model.hs
index cf0e473..15b9097 100644
--- a/Model.hs
+++ b/Model.hs
@@ -72,7 +72,8 @@ withTypes vals = do
72instance Ord Item where 72instance 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