wumpus-drawing-0.5.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Drawing.Text.Base.DocTextZero

Description

Flexible text type, composable with pretty-print style operators.

Direction zero (left-to-right) only.

Synopsis

Documentation

data Doc u a Source

Doc type.

Instances

type DocGraphic u = Doc u (UNil u)Source

(<+>) :: InterpretUnit u => DocGraphic u -> DocGraphic u -> DocGraphic uSource

Concatenate two Docs separated with a space.

(infixr 6)

bold :: Doc u a -> Doc u aSource

italic :: Doc u a -> Doc u aSource

boldItalic :: Doc u a -> Doc u aSource

float :: (RealFloat a, InterpretUnit u) => a -> DocGraphic uSource

Specialized version of ffloat - the answer is always rendered at "full precision".

ffloat :: (RealFloat a, InterpretUnit u) => Maybe Int -> a -> DocGraphic uSource

This is equivalent to showFFloat in the Numeric module.

Like showFFloat, the answer is rendered to supplied precision. Nothing indicated full precision.

highlight :: (Fractional u, InterpretUnit u) => RGBi -> Doc u a -> Doc u aSource