lp-diagrams-2.1.4: An EDSL for diagrams based based on linear constraints

Safe HaskellNone
LanguageHaskell2010

Graphics.Diagrams.DerivationTrees

Contents

Synopsis

Basics

Derivation' building

emptyDrv :: forall k lab. Monoid lab => Tree k (Rule lab) Source #

haltDrv' :: forall lab. Monoid lab => lab -> Derivation lab -> Derivation lab Source #

Used when the rest of the derivation is known.

delayPre :: forall lab a. Int -> (Link lab ::> a) -> Link lab ::> a Source #

dummy :: Monoid lab => Rule lab Source #

rule :: Monoid lab => lab -> lab -> Rule lab Source #

type Derivation lab = Tree (Link lab) (Rule lab) Source #

type Premise lab = Link lab ::> Derivation lab Source #

data Rule lab Source #

Constructors

Rule 

Fields

Links

data Link lab Source #

Constructors

Link

Regular link

Fields

Delayed

automatic delaying

Engine

delayD :: Monoid lab => Derivation lab -> Derivation lab Source #