rose-trees-0.0.4.4: A collection of rose tree structures.

Safe HaskellNone
LanguageHaskell2010

Data.Tree.Rose

Documentation

type family Head (x :: *) :: * Source #

Instances

type Head (Tree a) Source # 
type Head (Tree a) = a
type Head (SetTree a) Source # 
type Head (SetTree a) = a
type Head (KnuthForest a) Source # 
type Head (KnuthForest a) = a
type Head (KnuthTree a) Source # 
type Head (KnuthTree a) = a
type Head (HashTree a) Source # 
type Head (HashTree a) = a

type family Tail (y :: *) :: * Source #

Instances

type Tail (Tree a) Source # 
type Tail (Tree a) = [Tree a]
type Tail (SetTree a) Source # 
type Tail (SetTree a) = Set (SetTree a)
type Tail (KnuthForest a) Source # 
type Tail (KnuthTree a) Source # 
type Tail (HashTree a) Source # 
type Tail (HashTree a) = HashSet (HashTree a)

class RoseTree c where Source #

Minimal complete definition

(@->)

Methods

(@->) :: Head (c a) -> Tail (c a) -> c a infixr 9 Source #