Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
newtype AsmBuilderT m a Source #
Instances
data BuilderState Source #
data ProgramBuilderState Source #
PBS | |
|
data FunctionBuilderState Source #
FBS | |
|
type AsmBuilder = AsmBuilderT Identity Source #
class Monad m => MonadAsmBuilder m where Source #
Nothing
getAsmBuilderState :: m BuilderState Source #
default getAsmBuilderState :: (MonadTrans t, MonadAsmBuilder m1, m ~ t m1) => m BuilderState Source #
modifyAsmBuilderState :: (BuilderState -> BuilderState) -> m () Source #
default modifyAsmBuilderState :: (MonadTrans t, MonadAsmBuilder m1, m ~ t m1) => (BuilderState -> BuilderState) -> m () Source #
Instances
Monad m => MonadAsmBuilder (AsmBuilderT m) Source # | |
Defined in CodeGen.RiscV.Lib.Monad getAsmBuilderState :: AsmBuilderT m BuilderState Source # modifyAsmBuilderState :: (BuilderState -> BuilderState) -> AsmBuilderT m () Source # | |
MonadAsmBuilder m => MonadAsmBuilder (StateT s m) Source # | |
Defined in CodeGen.RiscV.Lib.Monad getAsmBuilderState :: StateT s m BuilderState Source # modifyAsmBuilderState :: (BuilderState -> BuilderState) -> StateT s m () Source # |