Copyright | (c) Kimiyuki Onaka 2020 |
---|---|
License | Apache License 2.0 |
Maintainer | kimiyuki95@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Alpha
provides a monad to run alpha-conversion. This monad has only a feature to make unique numbers.
Documentation
class Monad m => MonadAlpha m where Source #
nextCounter :: m Int Source #
Instances
Monad m => MonadAlpha (AlphaT m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: AlphaT m Int Source # | |
MonadAlpha m => MonadAlpha (ExceptT e m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: ExceptT e m Int Source # | |
MonadAlpha m => MonadAlpha (ReaderT r m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: ReaderT r m Int Source # | |
MonadAlpha m => MonadAlpha (StateT s m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: StateT s m Int Source # | |
(MonadAlpha m, Monoid w) => MonadAlpha (WriterT w m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: WriterT w m Int Source # |
Instances
MonadTrans AlphaT Source # | |
Defined in Jikka.Common.Alpha | |
MonadError e m => MonadError e (AlphaT m) Source # | |
Defined in Jikka.Common.Alpha throwError :: e -> AlphaT m a # catchError :: AlphaT m a -> (e -> AlphaT m a) -> AlphaT m a # | |
Monad m => Monad (AlphaT m) Source # | |
Functor m => Functor (AlphaT m) Source # | |
MonadFix m => MonadFix (AlphaT m) Source # | |
Defined in Jikka.Common.Alpha | |
Monad m => Applicative (AlphaT m) Source # | |
MonadIO m => MonadIO (AlphaT m) Source # | |
Defined in Jikka.Common.Alpha | |
Monad m => MonadAlpha (AlphaT m) Source # | |
Defined in Jikka.Common.Alpha nextCounter :: AlphaT m Int Source # |