projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Derived Eq instance for QSem and QSemN
[ghc-base.git]
/
Control
/
Concurrent
/
QSem.hs
diff --git
a/Control/Concurrent/QSem.hs
b/Control/Concurrent/QSem.hs
index
59ffbc7
..
8e8a301
100644
(file)
--- a/
Control/Concurrent/QSem.hs
+++ b/
Control/Concurrent/QSem.hs
@@
-36,7
+36,7
@@
import Data.Typeable
-- |A 'QSem' is a simple quantity semaphore, in which the available
-- \"quantity\" is always dealt with in units of one.
-- |A 'QSem' is a simple quantity semaphore, in which the available
-- \"quantity\" is always dealt with in units of one.
-newtype QSem = QSem (MVar (Int, [MVar ()]))
+newtype QSem = QSem (MVar (Int, [MVar ()])) deriving Eq
INSTANCE_TYPEABLE0(QSem,qSemTc,"QSem")
INSTANCE_TYPEABLE0(QSem,qSemTc,"QSem")