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

Stabilityexperimental
Maintainerconal@conal.net
Safe HaskellNone

FunctorCombo.DHoley

Description

Filling and extracting derivatives (one-hole contexts)

Synopsis

Documentation

class Functor f => Holey f whereSource

Associated Types

type Der f :: * -> *Source

Derivative, i.e., one-hole context

Methods

fillC :: Der f a -> a -> f aSource

Fill a hole

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

All extractions

Instances

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

fill :: Holey f => Loc f a -> f aSource

Alternative interface for fillC.