Kriens-0.1.0.0: Category for Continuation Passing Style

Copyright(c) Matteo Provenzano 2015
LicenseBSD-style (see the LICENSE file in the distribution)
Maintainermatteo.provenzano@alephdue.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Control.Category.Cont

Description

 

Synopsis

Documentation

data Cont f g Source

Instances

Category * Cont Source 
Monoid a => Monoid (Cont t (f -> a)) Source

Identity law:

Cont f . Cont id = Cont f . id = Cont f = Cont id . f = Cont id . Cont f

Associativity law:

(Cont f . Cont g) . Cont h = Cont (f . g) . Cont h = Cont (f . g . h) = Cont (f . (g . h)) = Cont f . Cont (g .h) = Cont f . (Cont g . Cont h)

forget :: Cont (a -> a) (b -> c) -> b -> c Source

It forgets the continuation.