wumpus-basic-0.22.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Kernel.Objects.Concat

Description

Classes for concatenation.

Synopsis

Documentation

class ZConcat o whereSource

Minimal defintion is superior, anterior is usually flip superior.

 `superior` (infixr 6)
 `anterior` (infixr 6)

Methods

anterior :: o -> o -> oSource

superior :: o -> o -> oSource

cat :: (Monoid o, ZConcat o) => [o] -> oSource

class Concat o whereSource

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)

Methods

hconcat :: o -> o -> oSource

vconcat :: o -> o -> oSource

Instances

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.

class CatSpace o whereSource

Methods

hspace :: u ~ DUnit o => u -> o -> o -> oSource

vspace :: u ~ DUnit o => u -> o -> o -> oSource

hsep :: (Monoid o, CatSpace o, u ~ DUnit o) => u -> [o] -> oSource

vsep :: (Monoid o, CatSpace o, u ~ DUnit o) => u -> [o] -> oSource

class Align o whereSource

Methods

halign :: HAlign -> o -> o -> oSource

valign :: VAlign -> o -> o -> oSource

Instances

alignRow :: (Monoid o, Align o) => HAlign -> [o] -> oSource

alignColumn :: (Monoid o, Align o) => VAlign -> [o] -> oSource

class AlignSpace o whereSource

Methods

halignSpace :: u ~ DUnit o => HAlign -> u -> o -> o -> oSource

valignSpace :: u ~ DUnit o => VAlign -> u -> o -> o -> oSource

alignRowSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => HAlign -> u -> [o] -> oSource

alignColumnSep :: (Monoid o, AlignSpace o, u ~ DUnit o) => VAlign -> u -> [o] -> oSource