Skip to content

Commit e952fcc

Browse files
committed
io-sim: inline on in Eq instance of TVar
1 parent 9d9f7ae commit e952fcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

io-sim/src/Control/Monad/IOSim/CommonTypes.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module Control.Monad.IOSim.CommonTypes where
1010
import Control.Monad.Class.MonadSTM (TraceValue)
1111
import Control.Monad.ST.Lazy
1212

13-
import Data.Function (on)
1413
import Data.Map (Map)
1514
import Data.Set (Set)
1615
import Data.STRef.Lazy
@@ -76,7 +75,7 @@ data TVar s a = TVar {
7675
}
7776

7877
instance Eq (TVar s a) where
79-
(==) = on (==) tvarId
78+
TVar {tvarId = a} == TVar {tvarId = b} = a == b
8079

8180
data SomeTVar s where
8281
SomeTVar :: !(TVar s a) -> SomeTVar s

0 commit comments

Comments
 (0)