Safe Haskell | None |
---|

Provide a class that renders multiple Haskell values in a text form that is accessible by gnuplot.

Maybe we add a method for the binary interface to gnuplot later.

- class C a where
- text :: a -> [ShowS]
- columnCount :: ColumnCount a

- newtype ColumnCount a = ColumnCount Int

# Documentation

For values that are also in Atom class,
`text`

must generate a singleton list.

columnCount :: ColumnCount aSource

It must hold `ColumnCount (length (text x)) == columnCount`

.

newtype ColumnCount a Source

Count numbers of gnuplot data columns for the respective type.

Somehow a writer monad with respect to Sum monoid without material monadic result.

Cf. ColumnSet module.

Eq (ColumnCount a) | |

Ord (ColumnCount a) | |

Show (ColumnCount a) |