summaryrefslogtreecommitdiff
path: root/Model.hs
diff options
context:
space:
mode:
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