interp-1.0.0.2: Tracery-like randomized text interpolation
Data.Text.Interp.Interpolate
data IState Source #
Record holding intermediary interpolation state
Constructors
Fields
interpolated text so far
mapping of bound variables
newIState :: IState Source #
interp Source #
Arguments
mapping to get substitutions out of
lits of segments to interpolate
final interpolation
Build interpolated text out of a Subst mapping and a list of segments to interpolate
Subst
interp' Source #
mapping
intermediary state
segment to interpolate
updated state, after the segment's been interpolated
Interpolate a single segment