diff --git a/ghc-datasize.cabal b/ghc-datasize.cabal
--- a/ghc-datasize.cabal
+++ b/ghc-datasize.cabal
@@ -1,5 +1,5 @@
 name:               ghc-datasize
-version:            0.2.4
+version:            0.2.5
 license:            BSD3
 license-file:       LICENSE
 category:           GHC, Debug, Development
@@ -20,10 +20,9 @@
 Library
   Exposed-modules: GHC.DataSize
   Default-Language: Haskell2010
-  Build-depends: base >= 4.12 && < 4.15,
+  Build-depends: base >= 4.12 && < 4.16,
                  deepseq >= 1.3 && < 1.5,
-                 ghc-lib-parser >= 8.6 && < 8.11,
-                 ghc-prim >= 0.5 && < 0.7
+                 ghc-prim >= 0.5 && < 0.8
   Hs-source-dirs: src/
   Ghc-options: -Wall
 
diff --git a/src/GHC/DataSize.hs b/src/GHC/DataSize.hs
--- a/src/GHC/DataSize.hs
+++ b/src/GHC/DataSize.hs
@@ -15,7 +15,7 @@
   )
   where
 
-import Control.DeepSeq (NFData, force)
+import Control.DeepSeq (NFData, ($!!))
 
 import Data.Word (Word)
 
@@ -80,7 +80,7 @@
 -- typeclass instance.
 
 recursiveSizeNF :: NFData a => a -> IO Word
-recursiveSizeNF = recursiveSize . force
+recursiveSizeNF x = recursiveSize $!! x
 
 -- | Adapted from 'GHC.Exts.Heap.getClosureRaw' which isn't exported.
 --
