diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/Thermoprint/Server/Queue.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/Thermoprint/Server/Queue.hs b/server/src/Thermoprint/Server/Queue.hs index 52e973d..b752576 100644 --- a/server/src/Thermoprint/Server/Queue.hs +++ b/server/src/Thermoprint/Server/Queue.hs | |||
@@ -115,7 +115,7 @@ fromZipper Queue{..} = Set.fromList . toList $ mconcat [ Seq.mapWithIndex Pendin | |||
115 | ] | 115 | ] |
116 | 116 | ||
117 | toZipper :: Set QueueItem -> Queue | 117 | toZipper :: Set QueueItem -> Queue |
118 | toZipper = Set.foldr' insert def | 118 | toZipper = Set.foldl' (flip insert) def |
119 | where | 119 | where |
120 | insert (Pending _ a) q@(Queue{..}) = q { pending = pending |> a } | 120 | insert (Pending _ a) q@(Queue{..}) = q { pending = pending |> a } |
121 | insert (Current a) q = q { current = Just a } | 121 | insert (Current a) q = q { current = Just a } |