diff --git a/CHANGES.md b/CHANGES.md
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,10 @@
 
 * The `noio` flag is deprecated and will be removed in the next major release.
 
+* Minor releases:
+
+  - 1.0.1: Build on GHC 9.x and open dependency bounds.
+
 # Version 0.0.0.12
 
 * Opposing lenses for `lines` and `unlines` and `words` and `unwords`.
diff --git a/Pipes/Prelude/Text.hs b/Pipes/Prelude/Text.hs
--- a/Pipes/Prelude/Text.hs
+++ b/Pipes/Prelude/Text.hs
@@ -179,11 +179,11 @@
 --    This operation will accumulate indefinitely long strict text chunks.
 --    See the caveats above.
 readFileLn :: MonadSafe m => FilePath -> Producer Text m ()
-readFileLn file = Safe.withFile file IO.ReadMode fromHandleLn
+readFileLn file = Safe.withFile file IO.ReadMode (\h -> fromHandleLn h)
 {-# INLINE readFileLn #-}
 
 -- | Write lines to a file. Apply @runSafeT@ after running the
 --    pipeline to manage the opening and closing of the handle.
 writeFileLn :: (MonadSafe m) => FilePath -> Consumer' Text m r
-writeFileLn file = Safe.withFile file IO.WriteMode toHandleLn
+writeFileLn file = Safe.withFile file IO.WriteMode (\h -> toHandleLn h)
 {-# INLINEABLE writeFileLn #-}
diff --git a/Pipes/Text.hs b/Pipes/Text.hs
--- a/Pipes/Text.hs
+++ b/Pipes/Text.hs
@@ -138,7 +138,7 @@
 -- IO can be found in 'Pipes.Text.IO' or in pipes-bytestring, employed with the
 -- decoding lenses in 'Pipes.Text.Encoding'
 fromLazy :: (Monad m) => TL.Text -> Producer' Text m ()
-fromLazy = TL.foldrChunks (\e a -> yield e >> a) (return ())
+fromLazy str = TL.foldrChunks (\e a -> yield e >> a) (return ()) str
 {-# INLINE fromLazy #-}
 
 (^.) :: a -> ((b -> Constant b b) -> (a -> Constant b a)) -> b
@@ -410,7 +410,7 @@
 peekChar :: (Monad m) => Parser Text m (Maybe Char)
 peekChar = do
   x <- drawChar
-  traverse_ unDrawChar x
+  traverse_ (\h -> unDrawChar h) x
   return x
 {-# INLINEABLE peekChar #-}
 
diff --git a/Pipes/Text/Encoding.hs b/Pipes/Text/Encoding.hs
--- a/Pipes/Text/Encoding.hs
+++ b/Pipes/Text/Encoding.hs
@@ -372,19 +372,19 @@
 --   using the encoding functions from Data.Text.Encoding
 
 encodeUtf8 :: Monad m => Text -> Producer' ByteString m ()
-encodeUtf8 = yield . TE.encodeUtf8
+encodeUtf8 str = yield $ TE.encodeUtf8 str
 
 encodeUtf16LE :: Monad m => Text -> Producer' ByteString m ()
-encodeUtf16LE = yield . TE.encodeUtf16LE
+encodeUtf16LE str = yield $ TE.encodeUtf16LE str
 
 encodeUtf16BE :: Monad m => Text -> Producer' ByteString m ()
-encodeUtf16BE = yield . TE.encodeUtf16BE
+encodeUtf16BE str = yield $ TE.encodeUtf16BE str
 
 encodeUtf32LE :: Monad m => Text -> Producer' ByteString m ()
-encodeUtf32LE = yield . TE.encodeUtf32LE
+encodeUtf32LE str = yield $ TE.encodeUtf32LE str
 
 encodeUtf32BE :: Monad m => Text -> Producer' ByteString m ()
-encodeUtf32BE = yield . TE.encodeUtf32BE
+encodeUtf32BE str = yield $ TE.encodeUtf32BE str
 
 mkCodec ::
   ( forall r m.
diff --git a/Pipes/Text/IO.hs b/Pipes/Text/IO.hs
--- a/Pipes/Text/IO.hs
+++ b/Pipes/Text/IO.hs
@@ -159,5 +159,5 @@
 
 -- | Stream text into a file. Uses @pipes-safe@.
 writeFile :: (MonadSafe m) => FilePath -> Consumer' Text m ()
-writeFile file = Safe.withFile file IO.WriteMode toHandle
+writeFile file = Safe.withFile file IO.WriteMode (\h -> toHandle h)
 {-# INLINE writeFile #-}
diff --git a/Setup.hs b/Setup.hs
deleted file mode 100644
--- a/Setup.hs
+++ /dev/null
@@ -1,3 +0,0 @@
-import Distribution.Simple
-
-main = defaultMain
diff --git a/pipes-text.cabal b/pipes-text.cabal
--- a/pipes-text.cabal
+++ b/pipes-text.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.2
 name:               pipes-text
-version:            1.0.0
+version:            1.0.1
 synopsis:           properly streaming text
 description:
   The organization of this package follows the rule:
@@ -59,8 +59,8 @@
     , pipes-parse        ^>=3.0.0
     , pipes-safe         >=2.1     && <2.4
     , streaming-commons  >=0.1     && <0.3
-    , text               >=0.11.2  && <1.3
-    , transformers       >=0.2.0.0 && <0.6
+    , text               >=0.11.2  && <2.1
+    , transformers       >=0.2.0.0 && <0.7
 
 common options
   default-language: Haskell2010
@@ -84,8 +84,6 @@
       Pipes.Prelude.Text
       Pipes.Text.IO
       Pipes.Text.Tutorial
-
-    build-depends:   text >=0.11.3 && <1.3
 
 -- test-suite test
 --   import:         options, dependencies
