machines-0.2.3: Networked stream transducers

PortabilityGADTs
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Inferred

Data.Machine.Unread

Description

 

Synopsis

Documentation

data Unread a r whereSource

This is a simple process type that knows how to push back input.

Constructors

Unread :: a -> Unread a () 
Read :: Unread a a 

peek :: Plan (Unread a) b aSource

Peek at the next value in the input stream without consuming it

unread :: a -> Plan (Unread a) b ()Source

Push back into the input stream