mini-ml-0.1.0.0: MiniML compiler
Safe HaskellSafe-Inferred
LanguageHaskell2010

CodeGen.RiscV.Lib.Monad

Documentation

newtype AsmBuilderT m a Source #

Constructors

AsmBuilderT 

Instances

Instances details
MonadTrans AsmBuilderT Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

lift :: Monad m => m a -> AsmBuilderT m a #

MonadState s m => MonadState s (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

get :: AsmBuilderT m s #

put :: s -> AsmBuilderT m () #

state :: (s -> (a, s)) -> AsmBuilderT m a #

MonadFix m => MonadFix (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

mfix :: (a -> AsmBuilderT m a) -> AsmBuilderT m a #

Monad m => Applicative (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

pure :: a -> AsmBuilderT m a #

(<*>) :: AsmBuilderT m (a -> b) -> AsmBuilderT m a -> AsmBuilderT m b #

liftA2 :: (a -> b -> c) -> AsmBuilderT m a -> AsmBuilderT m b -> AsmBuilderT m c #

(*>) :: AsmBuilderT m a -> AsmBuilderT m b -> AsmBuilderT m b #

(<*) :: AsmBuilderT m a -> AsmBuilderT m b -> AsmBuilderT m a #

Functor m => Functor (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

fmap :: (a -> b) -> AsmBuilderT m a -> AsmBuilderT m b #

(<$) :: a -> AsmBuilderT m b -> AsmBuilderT m a #

Monad m => Monad (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

Methods

(>>=) :: AsmBuilderT m a -> (a -> AsmBuilderT m b) -> AsmBuilderT m b #

(>>) :: AsmBuilderT m a -> AsmBuilderT m b -> AsmBuilderT m b #

return :: a -> AsmBuilderT m a #

Monad m => MonadAsmBuilder (AsmBuilderT m) Source # 
Instance details

Defined in CodeGen.RiscV.Lib.Monad

data ProgramBuilderState Source #

Constructors

PBS