Skip to content

Commit 5c1e82f

Browse files
committed
Fix PSQ warnings, Unique is never unpackable
1 parent b1aab46 commit 5c1e82f

File tree

1 file changed

+4
-4
lines changed
  • src/Control/Timeout/EventManager

1 file changed

+4
-4
lines changed

src/Control/Timeout/EventManager/PSQ.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ import Control.Timeout.Types (Timeout)
9595

9696
-- | @E k p@ binds the key @k@ with the priority @p@.
9797
data Elem a = E
98-
{ key :: {-# UNPACK #-} !Key
98+
{ key :: !Key
9999
, prio :: {-# UNPACK #-} !Prio
100100
, value :: a
101101
} deriving (Eq)
@@ -109,7 +109,7 @@ type Key = Timeout
109109
data PSQ a = Void
110110
| Winner {-# UNPACK #-} !(Elem a)
111111
!(LTree a)
112-
{-# UNPACK #-} !Key -- max key
112+
!Key -- max key
113113
deriving (Eq)
114114

115115
-- | /O(1)/ The number of elements in a queue.
@@ -290,12 +290,12 @@ data LTree a = Start
290290
| LLoser {-# UNPACK #-} !Size
291291
{-# UNPACK #-} !(Elem a)
292292
!(LTree a)
293-
{-# UNPACK #-} !Key -- split key
293+
!Key -- split key
294294
!(LTree a)
295295
| RLoser {-# UNPACK #-} !Size
296296
{-# UNPACK #-} !(Elem a)
297297
!(LTree a)
298-
{-# UNPACK #-} !Key -- split key
298+
!Key -- split key
299299
!(LTree a)
300300
deriving (Eq)
301301

0 commit comments

Comments
 (0)