diff options
-rw-r--r-- | server/src/Thermoprint/Server/Queue.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/Thermoprint/Server/Queue.hs b/server/src/Thermoprint/Server/Queue.hs index 3c8fb9e..c6a7903 100644 --- a/server/src/Thermoprint/Server/Queue.hs +++ b/server/src/Thermoprint/Server/Queue.hs | |||
@@ -144,6 +144,9 @@ toZipper = Set.foldl' (flip insert) def | |||
144 | type QueueManager t = QueueManagerM t (Extended Micro) | 144 | type QueueManager t = QueueManagerM t (Extended Micro) |
145 | type QueueManagerM t = ComposeT (StateT Queue) t STM | 145 | type QueueManagerM t = ComposeT (StateT Queue) t STM |
146 | 146 | ||
147 | instance (Monad (StateT s (g m)), Monad (g m)) => MonadState s (ComposeT (StateT s) g m) where | ||
148 | state = ComposeT . state | ||
149 | |||
147 | runQM :: ( HasQueue q | 150 | runQM :: ( HasQueue q |
148 | , MFunctor t | 151 | , MFunctor t |
149 | , MonadTrans t | 152 | , MonadTrans t |