Skip to content

Commit 1399eda

Browse files
authored
Fix compilation with -fdebug (#328)
1 parent 2c8a286 commit 1399eda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Data/HashMap/Internal/Array.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ liftRnfArray rnf0 ary0 = go ary0 n0 0
255255
-- state thread, with each element containing the specified initial
256256
-- value.
257257
new :: Int -> a -> ST s (MArray s a)
258-
new (I# n#) b =
259-
CHECK_GT("new",n,(0 :: Int))
258+
new _n@(I# n#) b =
259+
CHECK_GT("new",_n,(0 :: Int))
260260
ST $ \s ->
261261
case newArray# n# b s of
262262
(# s', ary #) -> (# s', MArray ary #)
@@ -474,8 +474,8 @@ undefinedElem = error "Data.HashMap.Internal.Array: Undefined element"
474474
{-# NOINLINE undefinedElem #-}
475475

476476
thaw :: Array e -> Int -> Int -> ST s (MArray s e)
477-
thaw !ary !_o@(I# o#) (I# n#) =
478-
CHECK_LE("thaw", _o + n, length ary)
477+
thaw !ary !_o@(I# o#) _n@(I# n#) =
478+
CHECK_LE("thaw", _o + _n, length ary)
479479
ST $ \ s -> case thawArray# (unArray ary) o# n# s of
480480
(# s2, mary# #) -> (# s2, MArray mary# #)
481481
{-# INLINE thaw #-}

0 commit comments

Comments
 (0)