Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data StaHandler s o a Source #
StaHandler (StaHandler# s o a) (Maybe (DynHandler s o a)) |
type StaSubRoutine s o a x = DynCont s o a x -> Code (Rep o) -> DynHandler s o a -> Code (ST s (Maybe a)) Source #
staHandler# :: StaHandler s o a -> StaHandler# s o a Source #
mkStaHandler :: StaHandler# s o a -> StaHandler s o a Source #
type DynHandler s o a = Code (Handler# s o a) Source #
type DynSubRoutine s o a x = Code (SubRoutine# s o a x) Source #
type MachineMonad s o xs n r a = Reader (Ctx s o a) (Γ s o xs n r a -> Code (ST s (Maybe a))) Source #
data QSubRoutine s o a x Source #
newtype Machine s o xs n r a Source #
Machine | |
|
qSubRoutine :: forall s o a x rs. DynFunc rs s o a x -> Regs rs -> QSubRoutine s o a x Source #
takeFreeRegisters :: Regs rs -> Ctx s o a -> (Ctx s o a -> DynSubRoutine s o a x) -> DynFunc rs s o a x Source #
askSub :: MonadReader (Ctx s o a) m => MVar x -> m (StaSubRoutine s o a x) Source #
debugLevel :: Ctx s o a -> Int Source #
breakPiggy :: Ctx s o a -> Ctx s o a Source #
isBankrupt :: Ctx s o a -> Bool Source #