Skip to content

Commit 286a8e9

Browse files
committed
Add HasCallStackIfDebug to the DeRef pattern
1 parent be1276c commit 286a8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-control/Control/RefCount.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ releaseRef ref@Ref{refobj} = do
256256
-- | Get the object in a 'Ref'. Be careful with retaining the object for too
257257
-- long, since the object must not be used after 'releaseRef' is called.
258258
--
259-
pattern DeRef :: obj -> Ref obj
259+
pattern DeRef :: HasCallStackIfDebug => obj -> Ref obj
260260
#ifndef NO_IGNORE_ASSERTS
261261
pattern DeRef obj <- Ref obj
262262
#else

0 commit comments

Comments
 (0)