functor-combo-0.0.7: Functor combinators with tries & zippers

Stabilityexperimental
Maintainerconal@conal.net
Safe HaskellSafe-Infered

FunctorCombo.ZipperReg

Description

 

Synopsis

Documentation

type Context t = [Der (PF t) t]Source

Context for a regular type

type Zipper t = (Context t, t)Source

Zipper for a regular type. Also called "location"

up :: (Regular t, Holey (PF t)) => Zipper t -> Zipper tSource

Move upward. Error if empty context.

up' :: (Regular t, Holey (PF t)) => Zipper t -> Maybe (Zipper t)Source

Variant of up. Nothing if empty context.

down :: (Regular t, Holey (PF t)) => Zipper t -> PF t (Zipper t)Source