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

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

FunctorCombo.DHoley

Description

Filling and extracting derivatives (one-hole contexts)

Synopsis

Documentation

class Functor f => Holey f where Source

Associated Types

type Der f :: * -> * Source

Derivative, i.e., one-hole context

Methods

fillC :: Der f a -> a -> f a Source

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 a Source

Alternative interface for fillC.