Skip to content

Commit b59fda2

Browse files
committed
io-classes:mtl: newArray for MArray ContTSTM instance
It is needed since `array-0.5.7` used by `ghc-9.8.4`. In other `MArray` instances we provide it, so let's do the same for this instance.
1 parent 638adf0 commit b59fda2

File tree

1 file changed

+0
-2
lines changed
  • io-classes/mtl/Control/Monad/Class/MonadSTM

1 file changed

+0
-2
lines changed

io-classes/mtl/Control/Monad/Class/MonadSTM/Trans.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ instance ( MonadSTM m, MArray e a (STM m) ) => MArray e a (ContTSTM r m) where
5454
getNumElements = ContTSTM . getNumElements
5555
unsafeRead arr = ContTSTM . unsafeRead arr
5656
unsafeWrite arr i = ContTSTM . unsafeWrite arr i
57-
#if __GLASGOW_HASKELL__ >= 910
5857
newArray idxs = ContTSTM . newArray idxs
59-
#endif
6058

6159

6260
-- note: this (and the following) instance requires 'UndecidableInstances'

0 commit comments

Comments
 (0)