effet-0.3.0.2: An Effect System based on Type Classes

Copyright(c) Michael Szvetits 2020
LicenseBSD3 (see the file LICENSE)
Maintainertypedbyte@qualified.name
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Control.Effect.Identity

Contents

Description

This module provides the function runIdentity for extracting the final result of pure effect interpretations.

Synopsis

Interpretations

runIdentity :: Identity a -> a Source #

Runs a computation using the Identity monad.

You usually need this when an expression of type Monad m => m a remains after handling all the effects and you want to extract its pure result.