HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleListLike-4.7.8.4Haskell2010

Data.ListLike.IO

String-like functions

Written by John Goerzen, jgoerzen@complete.org

  • 1 class
  • PackageListLike-4.7.8.4
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIO.hs
classclass ListLike full item => ListLikeIO full item | full -> item where
#

An extension to ListLike for those data types that support I/O. These functions mirror those in System.IO for the most part. They also share the same names; see the comments in Data.ListLike for help importing them.

Note that some types may not be capable of lazy reading or writing. Therefore, the usual semantics of System.IO functions regarding laziness may or may not be available from a particular implementation.

Minimal complete definition:

  • hGetLine

  • hGetContents

  • hGet

  • hGetNonBlocking

  • hPutStr

Methods

Instances13ListLikeIO, …