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

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

FunctorCombo.Derivative

Description

Derivatives (one-hole contexts) for standard Functor combinators

Synopsis

Documentation

type family Der f :: * -> * Source

A derivative, i.e., a one-hole context for a container f (probably a functor).

Instances

type Der Id = Unit 
type Der (Const a) = Void 
type Der ((:.) g f) = (:*:) ((:.) (Der g) f) (Der f) 
type Der ((:+:) f g) = (:+:) (Der f) (Der g) 
type Der ((:*:) f g) = (:+:) ((:*:) (Der f) g) ((:*:) f (Der g))