uniform-io-1.1.1.0: Uniform IO over files, network, anything.

Safe HaskellSafe-Inferred
LanguageHaskell2010

System.IO.Uniform.Streamline.Scanner

Synopsis

Documentation

data IOScannerState a Source

State of an IO scanner. Differently from a parser scanner, an IO scanner must deal with blocking behavior.

Constructors

Finished

A scanner returns Finished when the current input is not part of the result, and the scanning must stop before this input.

LastPass a

A scanner returns LastPass when the current input is the last one of the result, and the scanning must stop before after this input, without consuming more data.

Running a

A scanner returns Running when the current input is part of the result, and the scanning must continue.

anyScanner :: Default a => [IOScanner a] -> IOScanner [a] Source