HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleHTTP-4000.4.1Haskell98

Network.Stream

An library for creating abstract streams. Originally part of Gray's/Bringert's HTTP module.

  • Changes by Robin Bate Boerop robin@bateboerop.name:

  • Removed unnecessary import statements.

  • Moved Debug code to StreamDebugger.hs

  • Moved Socket-related code to StreamSocket.hs.

  • Changes by Simon Foster:

  • Split Network.HTTPmodule up into to separate Network.[Stream,TCP,HTTP] modules

  • 2 types
  • 1 class
  • 5 values
  • PackageHTTP-4000.4.1
  • Exports8
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceStream.hs
classclass Stream x where
#

Streams should make layering of TLS protocol easier in future, they allow reading/writing to files etc for debugging, they allow use of protocols other than TCP/IP and they allow customisation.

Instances of this class should not trim the input in any way, e.g. leave LF on line endings etc. Unless that is exactly the behaviour you want from your twisted instances ;)

Methods

Instances3Stream