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

PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Kernel.Base.WrappedPrimitive

Contents

Description

Wrapped versions of the Primitive type from Wumpus-Core.

This file is essentially internal to Wumpus-Basic.

Synopsis

Primitives

data CatPrim Source

A wrapped version of Primitive from Wumpus-Core that supports Monoid.

Note that CatPrim provides a single-object that can be hyperlinked or whatever.

It is different to HPrim which is intended as a list type with efficient concatenation to support building of multiple Primitives in a frame.

This type is essentially internal to Wumpus-Basic.

data HPrim u Source

Collected primitives - this type is effectively an analogue to a Frame in Wumpus-Core.

This type is essentially internal to Wumpus-Basic.

Instances

hprimToList :: HPrim u -> [Primitive]Source

Extract the internal list of Primitive from a HPrim.

The expectation is that this Primitive list will be rendered by Wumpus-Core as a frame.

singleH :: CatPrim -> HPrim uSource

Form a HPrim from a CatPrim.