Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
Safe Haskell | Safe-Infered |
Flexible text type, composable with pretty-print
style
operators.
Direction zero (left-to-right) only.
- data GenDoc st u a
- type Doc u a = GenDoc () u a
- type GenDocGraphic st u = GenDoc st u (UNil u)
- type DocGraphic u = Doc u (UNil u)
- runGenDoc :: VAlign -> FontFamily -> GenDoc st u a -> GenPosObject st u a
- (<+>) :: InterpretUnit u => GenDocGraphic st u -> GenDocGraphic st u -> GenDocGraphic st u
- blank :: InterpretUnit u => GenDocGraphic st u
- space :: InterpretUnit u => GenDocGraphic st u
- string :: InterpretUnit u => String -> GenDocGraphic st u
- escaped :: InterpretUnit u => EscapedText -> GenDocGraphic st u
- embedPosObject :: GenPosObject st u a -> GenDoc st u a
- bold :: GenDoc st u a -> GenDoc st u a
- italic :: GenDoc st u a -> GenDoc st u a
- boldItalic :: GenDoc st u a -> GenDoc st u a
- monospace :: InterpretUnit u => EscapedChar -> EscapedText -> GenDocGraphic st u
- int :: InterpretUnit u => Int -> GenDocGraphic st u
- integer :: InterpretUnit u => Integer -> GenDocGraphic st u
- float :: (RealFloat a, InterpretUnit u) => a -> GenDocGraphic st u
- ffloat :: (RealFloat a, InterpretUnit u) => Maybe Int -> a -> GenDocGraphic st u
- strikethrough :: (Fractional u, InterpretUnit u) => GenDoc st u a -> GenDoc st u a
- underline :: (Fractional u, InterpretUnit u) => GenDoc st u a -> GenDoc st u a
- highlight :: (Fractional u, InterpretUnit u) => RGBi -> GenDoc st u a -> GenDoc st u a
Documentation
Doc type.
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 GenDocGraphic st u = GenDoc st u (UNil u)Source
type DocGraphic u = Doc u (UNil u)Source
runGenDoc :: VAlign -> FontFamily -> GenDoc st u a -> GenPosObject st u aSource
(<+>) :: InterpretUnit u => GenDocGraphic st u -> GenDocGraphic st u -> GenDocGraphic st uSource
Concatenate two Docs separated with a space.
(infixr 6)
blank :: InterpretUnit u => GenDocGraphic st uSource
space :: InterpretUnit u => GenDocGraphic st uSource
string :: InterpretUnit u => String -> GenDocGraphic st uSource
escaped :: InterpretUnit u => EscapedText -> GenDocGraphic st uSource
embedPosObject :: GenPosObject st u a -> GenDoc st u aSource
boldItalic :: GenDoc st u a -> GenDoc st u aSource
monospace :: InterpretUnit u => EscapedChar -> EscapedText -> GenDocGraphic st uSource
int :: InterpretUnit u => Int -> GenDocGraphic st uSource
integer :: InterpretUnit u => Integer -> GenDocGraphic st uSource
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.
strikethrough :: (Fractional u, InterpretUnit u) => GenDoc st u a -> GenDoc st u aSource
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