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

Stabilityexperimental
Maintainerconal@conal.net

FunctorCombo.DHoley

Description

Filling and extracting derivatives (one-hole contexts)

Documentation

class Functor f => Holey f whereSource

Associated Types

type Der f :: * -> *Source

Derivative, i.e., one-hole context

Methods

fill :: Loc f a -> f aSource

Fill a hole

extract :: f a -> f (Loc f a)Source

All extractions

Instances

Holey Id 
Holey (Const z) 
(Holey f, Holey g) => Holey (:. g f) 
(Holey f, Holey g) => Holey (:+: f g) 
(Holey f, Holey g) => Holey (:*: f g)