Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Forest.StructuredPaired
Description
A semi-specialized forest structure with the following atomic elements:
(i) unstructured regions of type a
, (ii) binary paired regions of type
(b,b)
with a recursing tree (or insertion between the two b
's), (iii)
juxtaposition of two elements, and (iv) an empty structure.
Synopsis
- data SPForest r t
- _SPR :: forall r t p f. (Choice p, Applicative f) => p r (f r) -> p (SPForest r t) (f (SPForest r t))
- _SPT :: forall r t p f. (Choice p, Applicative f) => p (t, SPForest r t, t) (f (t, SPForest r t, t)) -> p (SPForest r t) (f (SPForest r t))
- _SPJ :: forall r t p f. (Choice p, Applicative f) => p [SPForest r t] (f [SPForest r t]) -> p (SPForest r t) (f (SPForest r t))
- _SPE :: forall r t p f. (Choice p, Applicative f) => p () (f ()) -> p (SPForest r t) (f (SPForest r t))
- toStaticForest :: forall r t (p :: TreeOrder) (v :: Type -> Type) a. SPForest r t -> Forest p v a
Documentation
A structured forest.
Constructors
SPR r | An (unstructured) region with the structured forest. In case |
SPT t (SPForest r t) t | A tree within the forest brackets the forest on the left and right side
with elements of type |
SPJ [SPForest r t] | Juxtaposition of two forests. This allows for simple concatenation of
forests. In particular, there is no particular position, while lists
prefer |
SPE | An empty forest. |
Instances
_SPR :: forall r t p f. (Choice p, Applicative f) => p r (f r) -> p (SPForest r t) (f (SPForest r t)) Source #
_SPT :: forall r t p f. (Choice p, Applicative f) => p (t, SPForest r t, t) (f (t, SPForest r t, t)) -> p (SPForest r t) (f (SPForest r t)) Source #
_SPJ :: forall r t p f. (Choice p, Applicative f) => p [SPForest r t] (f [SPForest r t]) -> p (SPForest r t) (f (SPForest r t)) Source #