antisplice-0.12.1.0: An engine for text-based dungeons.

Safe HaskellSafe-Inferred

Game.Antisplice.Utils.ListBuilder

Documentation

class Monad l => ListBuilder l i | l -> i whereSource

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