License | GNU LGPLv3 |
---|---|
Maintainer | paul.bittner@uni-ulm.de |
Safe Haskell | None |
Module for colouring features and feature formulas. We use this colouring for visualizing features when printing to terminal.
Synopsis
- type ColourPalette a m = a -> Color m
- type FeatureColourPalette m = ColourPalette Feature m
- type FeatureFormulaColourPalette m = ColourPalette FeatureFormula m
- defaultFeatureFormulaColouring :: MonadColorPrinter m => FeatureColourPalette m -> FeatureFormulaColourPalette m
Documentation
type ColourPalette a m = a -> Color m Source #
A ColourPalette
assigns values of type a
to Color
s.
type FeatureColourPalette m = ColourPalette Feature m Source #
A FeatureColourPalette
is a ColourPalette
for Feature
s.
type FeatureFormulaColourPalette m = ColourPalette FeatureFormula m Source #
A FeatureFormulaColourPalette
is a ColourPalette
for FeatureFormula
s.
defaultFeatureFormulaColouring :: MonadColorPrinter m => FeatureColourPalette m -> FeatureFormulaColourPalette m Source #
Lifts a colour palette over features (FeatureColourPalette
) to a palette over formulas (FeatureFormulaColourPalette
).