Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | stephen.tetley@gmail.com |
Classes for concatenation.
- class ZConcat o where
- cat :: (Monoid o, ZConcat o) => [o] -> o
- class Concat o where
- hcat :: (Monoid o, Concat o) => [o] -> o
- vcat :: (Monoid o, Concat o) => [o] -> o
- class CatSpace o where
- hsep :: (Monoid o, CatSpace o, u ~ DUnit o) => u -> [o] -> o
- vsep :: (Monoid o, CatSpace o, u ~ DUnit o) => u -> [o] -> o
- class Align o where
- alignRow :: (Monoid o, Align o) => HAlign -> [o] -> o
- alignColumn :: (Monoid o, Align o) => VAlign -> [o] -> o
- class AlignSpace o where
- halignSpace :: u ~ DUnit o => HAlign -> u -> o -> o -> o
- valignSpace :: u ~ DUnit o => VAlign -> u -> o -> o -> o
- alignRowSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => HAlign -> u -> [o] -> o
- alignColumnSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => VAlign -> u -> [o] -> o
Documentation
Minimal defintion is superior
, anterior
is usually
flip superior
.
`superior` (infixr 6)
`anterior` (infixr 6)
ZConcat CtxPicture | |
(Monoid a, InterpretUnit u) => ZConcat (PosObject u a) |
Concatenation with movement - the second object is moved next to the first.
hconcat is equivalent to @(<>)@ in WL-PPrint. (infixr 6)
vconcat is equivalent to @(<$>)@ in WL_PPrint. (infixr 5)
Concat CtxPicture | |
Monoid a => Concat (PosObject u a) |
hcat :: (Monoid o, Concat o) => [o] -> oSource
Horizontally concatenate a list of objects.
Note - the first argument is an alternative - this is drawn if the list is empty, otherwise it is not drawn.
vcat :: (Monoid o, Concat o) => [o] -> oSource
Vertically concatenate a list of objects.
Note - the first argument is an alternative - this is drawn if the list is empty, otherwise it is not drawn.
CatSpace CtxPicture | |
(Monoid a, InterpretUnit u) => CatSpace (PosObject u a) |
Align CtxPicture | |
Monoid a => Align (PosObject u a) |
alignColumn :: (Monoid o, Align o) => VAlign -> [o] -> oSource
class AlignSpace o whereSource
halignSpace :: u ~ DUnit o => HAlign -> u -> o -> o -> oSource
valignSpace :: u ~ DUnit o => VAlign -> u -> o -> o -> oSource
AlignSpace CtxPicture | |
(Monoid a, InterpretUnit u) => AlignSpace (PosObject u a) |
alignRowSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => HAlign -> u -> [o] -> oSource
alignColumnSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => VAlign -> u -> [o] -> oSource