thorn-0.1.0.3: Datatype Manipulation with Template Haskell

Safe HaskellNone

Data.Thorn.FoldExample

Documentation

data x :$ y Source

Constructors

Nil 
(x, y) :* (x :$ y) 

data (t0 :&$ t1) self Source

Constructors

UfNil 
:&* (t0, t1) self 

insth :: :&$ x y (:$ x y) -> :$ x ySource

outsth :: :$ t0 t1 -> :&$ t0 t1 (:$ t0 t1)Source

hylosth :: (t -> :&$ t0 t1 t) -> (:&$ t0 t1 self -> self) -> t -> selfSource

foldsth :: (:&$ t0 t1 self -> self) -> :$ t0 t1 -> selfSource

unfoldsth :: (t -> :&$ x y t) -> t -> :$ x ySource