chatty-utils-0.7.3.1: Some utilities every serious chatty-based application may need.

Safe HaskellSafe
LanguageHaskell2010

Data.Chatty.ListBuilder

Documentation

class Monad l => ListBuilder l i | l -> i where Source

Methods

li :: i -> l () Source

buildList :: l () -> [i] Source

newtype StrictBuilderT i m a Source

Constructors

StrictBuilder 

Fields

runStrictBuilderT :: [i] -> m (a, [i])
 

newtype LazyBuilderT i m a Source

Constructors

LazyBuilder 

Fields

runLazyBuilderT :: ([i] -> [i]) -> m (a, [i] -> [i])
 

lis :: ListBuilder l i => [i] -> l () Source

lit :: ListBuilder l (a, b) => a -> b -> l () Source

(>-<) :: ListBuilder l (a, b) => a -> b -> l () Source