lazy-io-0.1.0: Lazy IO

Safe HaskellNone

Control.Monad.LazyIO

Description

The module is intended to be imported qualified:

>>> import qualified Control.Monad.LazyIO as LazyIO

Synopsis

Documentation

sequence :: [IO a] -> IO [a]Source

Lazily evaluate each action in the sequence from left to right, and collect the results.

mapM :: (a -> IO b) -> [a] -> IO [b]Source

mapM f is equivalent to sequence . map f.

forM :: [a] -> (a -> IO b) -> IO [b]Source

forM is mapM with its arguments flipped.