ยค StreamProcIO, puts

Stream processor type class

Types

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

Description

The StreamProcIO class captures the basic IO operations that a stream processor can perform.

See Also

Instances: SP, F, K.