HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletext-2.1.4Haskell2010

Data.Text.IO.Utf8

Efficient UTF-8 support for text I/O. Unlike Data.Text.IO, these functions do not depend on the locale and do not do line ending conversion.

Contents
  1. File-at-a-time operations
  2. Operations on handles
  3. Special cases for standard input and output
Synopsis
  • Packagetext-2.1.4
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceUtf8.hs

File-at-a-time operations

Operations on handles

Special cases for standard input and output

valueinteract :: (Text -> Text) -> IO ()

The interact function takes a function of type Text -> Text as its argument. The entire input from the standard input device is passed to this function as its argument, and the resulting string is output on the standard output device.