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

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com
Safe HaskellSafe-Infered

Wumpus.Drawing.Text.Base.DocTextZero

Description

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

Direction zero (left-to-right) only.

Synopsis

Documentation

data GenDoc st u a Source

Doc type.

Instances

Monad (GenDoc st u) 
Functor (GenDoc st u) 
Applicative (GenDoc st u) 
UserStateM (GenDoc st u) 
DrawingCtxM (GenDoc st u) 
(Monoid a, InterpretUnit u) => Monoid (GenDoc st u a) 
(Monoid a, Fractional u, InterpretUnit u) => Concat (GenDoc st u a) 

type Doc u a = GenDoc () u aSource

type GenDocGraphic st u = GenDoc st u (UNil u)Source

type DocGraphic u = Doc u (UNil u)Source

(<+>) :: InterpretUnit u => GenDocGraphic st u -> GenDocGraphic st u -> GenDocGraphic st uSource

Concatenate two Docs separated with a space.

(infixr 6)

bold :: GenDoc st u a -> GenDoc st u aSource

italic :: GenDoc st u a -> GenDoc st u aSource

boldItalic :: GenDoc st u a -> GenDoc st u aSource

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

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

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

This is equivalent to showFFloat in the Numeric module.

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

underline :: (Fractional u, InterpretUnit u) => GenDoc st u a -> GenDoc st u aSource

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