Copyright | (c) Evgeny Poberezkin |
---|---|
License | BSD3 |
Maintainer | evgeny@poberezkin.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
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.
),
you have to explicitly import Prelude (or any replacement) hiding standard monadic operations:XMonad
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.