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

Copyright(c) Conal Elliott 2010
LicenseBSD3
Maintainerconal@conal.net
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

FunctorCombo.Holey

Description

Filling and extracting derivatives (one-hole contexts)

Synopsis

Documentation

type Loc f a = (Der f a, a) Source

Location, i.e., one-hole context and a value for the hole.

class Functor f => Holey f where Source

Filling and creating one-hole contexts

Methods

fillC Source

Arguments

:: Der f a 
-> a 
-> f a

Fill a hole

extract Source

Arguments

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

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) 

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

Alternative interface for fillC.