Skip to content

Commit

Permalink
Add HasCallStackIfDebug to the DeRef pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Mar 4, 2025
1 parent 976a665 commit 477dcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-control/Control/RefCount.hs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ releaseRef ref@Ref{refobj} = do
-- | Get the object in a 'Ref'. Be careful with retaining the object for too
-- long, since the object must not be used after 'releaseRef' is called.
--
pattern DeRef :: obj -> Ref obj
pattern DeRef :: HasCallStackIfDebug => obj -> Ref obj
#ifndef NO_IGNORE_ASSERTS
pattern DeRef obj <- Ref obj
#else
Expand Down

0 comments on commit 477dcf2

Please sign in to comment.