diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/Thermoprint/Server/Queue.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/Thermoprint/Server/Queue.hs b/server/src/Thermoprint/Server/Queue.hs index d5ab42b..52e973d 100644 --- a/server/src/Thermoprint/Server/Queue.hs +++ b/server/src/Thermoprint/Server/Queue.hs | |||
@@ -52,7 +52,7 @@ data Queue = Queue | |||
52 | , current :: Maybe QueueEntry | 52 | , current :: Maybe QueueEntry |
53 | , history :: Seq (QueueEntry, Maybe PrintingError) -- ^ Completed jobs, closest first | 53 | , history :: Seq (QueueEntry, Maybe PrintingError) -- ^ Completed jobs, closest first |
54 | } | 54 | } |
55 | deriving (Typeable, Generic, NFData) | 55 | deriving (Typeable, Generic, NFData, Show) |
56 | 56 | ||
57 | class HasQueue a where | 57 | class HasQueue a where |
58 | extractQueue :: a -> TVar Queue | 58 | extractQueue :: a -> TVar Queue |
@@ -71,7 +71,7 @@ data QueueEntry = QueueEntry | |||
71 | { jobId :: JobId | 71 | { jobId :: JobId |
72 | , created :: UTCTime | 72 | , created :: UTCTime |
73 | } | 73 | } |
74 | deriving (Typeable, Generic, NFData, Eq, Ord) | 74 | deriving (Typeable, Generic, NFData, Eq, Ord, Show) |
75 | 75 | ||
76 | data QueueItem = Pending Int QueueEntry | Current QueueEntry | History Int QueueEntry (Maybe PrintingError) | 76 | data QueueItem = Pending Int QueueEntry | Current QueueEntry | History Int QueueEntry (Maybe PrintingError) |
77 | 77 | ||