1 2 3 4 5 6 7 8
import Control.Monad.Writer example :: Writer [Int] String example = do tell [1..5] tell [6..10] return "foo"