class StreamProcIO sp where put :: o -> sp i o -> sp i o get :: (i -> sp i o) -> sp i o end :: sp i o instance StreamProcIO SP instance StreamProcIO F instance StreamProcIO K puts :: (Foldable t, StreamProcIO sp) => t a -> sp i a -> sp i a
The StreamProcIO
class captures the basic IO operations that a stream processor
can perform.