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

PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Kernel.Objects.Basis

Description

Common types and operations.

Synopsis

Documentation

type PrimResult u a = (a, CatPrim)Source

data Image u a Source

Instances

type Graphic u = Image u (UNil u)Source

data Query u a Source

Instances

type DImage a = Image Double aSource

Type specialized version of Image.

type DGraphic = Graphic DoubleSource

Type specialized version of Graphic.

zapQuery :: Query u a -> Image u aSource

primGraphic :: CatPrim -> Graphic uSource

Constructor for Primtive graphics.

clipImage :: PrimPath -> Image u a -> Image u aSource

Clip an Image.

class UConvert f whereSource

Methods

uconvF :: (Functor t, InterpretUnit u, InterpretUnit u1) => f u (t u) -> f u1 (t u1)Source

uconvZ :: (InterpretUnit u, InterpretUnit u1) => f u a -> f u1 aSource

uconvImageF :: (Functor t, InterpretUnit u, InterpretUnit u1) => Image u (t u) -> Image u1 (t u1)Source

emptyImage :: Monoid a => Image u aSource

Having empty at the specific Image type is useful.

ignoreAns :: Functor (f u) => f u a -> f u (UNil u)Source

Note - the kind of f allows fo unit annotation.

replaceAns :: Functor (f u) => a -> f u z -> f u aSource

Replace the answer produced by a graphic object.

class Decorate f whereSource

Decorate an object

oliterate - drops the graphic from the first object replacing it with the graphic from the second.

Methods

decorate :: ZDeco -> f u a -> f u z -> f u aSource

elaborate :: ZDeco -> f u a -> (a -> f u z) -> f u aSource

obliterate :: f u a -> f u aSource

hyperlink :: XLink -> f u a -> f u aSource

sdecorate :: Decorate f => f u a -> f u z -> f u aSource

adecorate :: Decorate f => f u a -> f u z -> f u aSource

selaborate :: Decorate f => f u a -> (a -> f u z) -> f u aSource

aelaborate :: Decorate f => f u a -> (a -> f u z) -> f u aSource