From 2f292db8f10134919c420b71b8a5eccd379212ad Mon Sep 17 00:00:00 2001 From: Paavo Date: Wed, 11 Mar 2020 21:49:36 +0200 Subject: Update documentation for closureSize --- libraries/ghc-heap/GHC/Exts/Heap/Closures.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs index b247266a10..bb9d440b37 100644 --- a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs +++ b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs @@ -347,7 +347,8 @@ allClosures (OtherClosure {..}) = hvalues allClosures _ = [] #if __GLASGOW_HASKELL__ >= 809 --- | Get the size of a closure in words. +-- | Get the size of the top-level closure in words. +-- Includes header and payload. Does not follow pointers. -- -- @since 8.10.1 closureSize :: Box -> Int -- cgit v1.2.1