Most users of this library do not need this module. The functions here
are used to build functions that apply a
Colonnade to a
collection of values, building a table from them. Ultimately, a
function that applies a
Colonnade Headed MyCell a to data
will have roughly the following type:
myTableRenderer :: Foldable g => Colonnade Headed MyCell a -> g a -> MyContent
In the companion packages
yesod-colonnade and
reflex-dom-colonnade, functions with similar type signatures
are readily available. These packages use the functions provided here
in the implementations of their rendering functions. It is recommended
that users who believe they may need this module look at the source of
the companion packages to see an example of how this module's
functions are used. Other backends are encouraged to use these
functions to build monadic or monoidal content from a
Colonnade.
The functions exported here take a
Colonnade and convert it to
a fragment of content. The functions whose names start with
row take at least a
Colonnade f c a and an
a value to generate a row of content. The functions whose
names start with
header need the
Colonnade f c a but
not an
a value since a value is not needed to build a header.