freer-indexed-0.1.0.0: Freer indexed monad for type-level resource-aware effectual operations.

Copyright(c) Evgeny Poberezkin
LicenseBSD3
Maintainerevgeny@poberezkin.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Control.XMonad.Do

Contents

Description

This module re-defines standard monadic operations to allow do expressions with indexed monad XMonad instances using RebindableSyntax extension.

In addition to importing this module (it is not re-exported by Control.XMonad), you have to explicitly import Prelude (or any replacement) hiding standard monadic operations:

import Prelude hiding (fail, (>>), (>>=))

fail is only needed if your indexed monad is also an instance of XMonadFail.

You cannot combine do expressions for normal and indexed monads in the same module.

Synopsis

Monadic functions

(>>=) :: XMonad m => m i j a -> (a -> m j k b) -> m i k b infixl 1 Source #

(>>) :: XMonad m => m i j a -> m j k b -> m i k b infixl 1 Source #

fail :: XMonadFail m => String -> m i j a Source #