diff --git a/ghc/compiler/utils/BitSet.lhs b/ghc/compiler/utils/BitSet.lhs
index e7f1ec664b78f18e23e00051a0f4127f24c2b1fe..7af5ff9c71e9fe243a6180e4da46712349e257f7 100644
--- a/ghc/compiler/utils/BitSet.lhs
+++ b/ghc/compiler/utils/BitSet.lhs
@@ -26,6 +26,9 @@ module BitSet (
     ) where
 
 #ifdef __GLASGOW_HASKELL__
+#if __GLASGOW_HASKELL__ >= 202
+import GlaExts
+#endif
 -- nothing to import
 #elif defined(__YALE_HASKELL__)
 {-hide import from mkdependHS-}