diff --git a/ghc/compiler/utils/Util.lhs b/ghc/compiler/utils/Util.lhs
index c9b188330c0a79c173a5b41c09545d3f2ff741ee..c4ee1f437f6053e48c8b383c5ab59851253f4f82 100644
--- a/ghc/compiler/utils/Util.lhs
+++ b/ghc/compiler/utils/Util.lhs
@@ -47,6 +47,12 @@ module Util (
 	IF_NOT_GHC(cfst COMMA applyToPair COMMA applyToFst COMMA)
 	IF_NOT_GHC(applyToSnd COMMA foldPair COMMA)
 	unzipWith
+
+	-- I/O
+#if __GLASGOW_HASKELL__ < 402
+	, bracket
+#endif
+
     ) where
 
 #include "HsVersions.h"