We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
on
TVar
1 parent 9d9f7ae commit e952fccCopy full SHA for e952fcc
io-sim/src/Control/Monad/IOSim/CommonTypes.hs
@@ -10,7 +10,6 @@ module Control.Monad.IOSim.CommonTypes where
10
import Control.Monad.Class.MonadSTM (TraceValue)
11
import Control.Monad.ST.Lazy
12
13
-import Data.Function (on)
14
import Data.Map (Map)
15
import Data.Set (Set)
16
import Data.STRef.Lazy
@@ -76,7 +75,7 @@ data TVar s a = TVar {
76
75
}
77
78
instance Eq (TVar s a) where
79
- (==) = on (==) tvarId
+ TVar {tvarId = a} == TVar {tvarId = b} = a == b
80
81
data SomeTVar s where
82
SomeTVar :: !(TVar s a) -> SomeTVar s
0 commit comments