Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data UiVmState = UiVmState {}
- uiVmStepCount :: Lens' UiVmState Int
- uiVmSolc :: Lens' UiVmState (Maybe SolcContract)
- uiVmNextStep :: Lens' UiVmState (Stepper ())
- uiVmMessage :: Lens' UiVmState (Maybe Text)
- uiVmFirstState :: Lens' UiVmState UiVmState
- uiVmFetcher :: Lens' UiVmState Fetcher
- uiVmDapp :: Lens' UiVmState (Maybe DappInfo)
- uiVm :: Lens' UiVmState VM
- type Pred a = a -> Bool
- data StepMode
- data StepOutcome a
- interpret :: StepMode -> Stepper a -> State UiVmState (StepOutcome a)
- stepOneOpcode :: UiVmState -> UiVmState
- updateUiVmState :: UiVmState -> VM -> UiVmState
- type Sexp = WellFormedSExpr HaskLikeAtom
- prompt :: Console (Maybe Sexp)
- class SDisplay a where
- display :: SDisplay a => a -> Text
- txt :: Show a => a -> Text
- data UiState
- type Console a = StateT UiState IO a
- output :: SDisplay a => a -> Console ()
- main :: IO ()
- loop :: Console ()
- handle :: Sexp -> Console ()
- handleCmd :: UiState -> (Text, [Sexp]) -> Console ()
- outputVm :: Console ()
- isNextSourcePosition :: UiVmState -> Pred VM
- parseStepMode :: UiVmState -> Text -> Maybe StepMode
- data StepPolicy
- takeStep :: UiVmState -> StepPolicy -> StepMode -> Console ()
- quoted :: Text -> Text
- defaultUnitTestOptions :: MonadIO m => m UnitTestOptions
- initialStateForTest :: UnitTestOptions -> DappInfo -> (Text, Text) -> UiVmState
Documentation
UiVmState | |
|
data StepOutcome a Source #
stepOneOpcode :: UiVmState -> UiVmState Source #
type Sexp = WellFormedSExpr HaskLikeAtom Source #
class SDisplay a where Source #
Instances
SDisplay ByteString Source # | |
SDisplay Addr Source # | |
SDisplay W256 Source # | |
SDisplay Memory Source # | |
SDisplay Blob Source # | |
SDisplay Word Source # | |
SDisplay Contract Source # | |
SDisplay FrameState Source # | |
SDisplay FrameContext Source # | |
SDisplay Frame Source # | |
SDisplay VM Source # | |
SDisplay VMResult Source # | |
SDisplay DappInfo Source # | |
SDisplay a => SDisplay [a] Source # | |
SDisplay a => SDisplay (Maybe a) Source # | |
SDisplay (SExpr Text) Source # | |
(SDisplay k, SDisplay v) => SDisplay (Map k v) Source # | |
parseStepMode :: UiVmState -> Text -> Maybe StepMode Source #
Specifies whether to do I/O blocking or VM halting while stepping. When we step backwards, we don't want to allow those things.
data StepPolicy Source #
StepNormally | Allow blocking and returning |
StepTimidly | Forbid blocking and returning |
defaultUnitTestOptions :: MonadIO m => m UnitTestOptions Source #
initialStateForTest :: UnitTestOptions -> DappInfo -> (Text, Text) -> UiVmState Source #