Skip to content

Commit 83de9c3

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 07208e8 commit 83de9c3

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

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

5957

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

0 commit comments

Comments
 (0)