freer-0.2.2.6: Implementation of the Freer Monad

CopyrightAlej Cabrera 2015
LicenseBSD-3
Maintainercpp.cabrera@gmail.com
Stabilitybroken
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Control.Monad.Freer.Fresh

Description

Composable handler for Fresh effects. This is likely to be of use when implementing De Bruijn naming/scopes.

Using http://okmij.org/ftp/Haskell/extensible/Eff1.hs as a starting point.

Synopsis

Documentation

data Fresh v Source

Fresh effect model

fresh :: Member Fresh r => Eff r Int Source

Request a fresh effect

runFresh' :: Eff (Fresh : r) w -> Int -> Eff r w Source

Handler for Fresh effects, with an Int for a starting value