class StreamProcIO a where put :: b -> a c b -> a c b get :: (d -> a d e) -> a d e end :: a f g
The StreamProcIO class captures the basic IO operations that a stream processor can perform.
StreamProcIO