Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data OCDT m a
- runOCDT :: Monad m => Socket -> OCDT m a -> m (Either OCDError a)
- class (MonadIO m, MonadError OCDError m) => MonadOCD m where
- halt :: MonadOCD m => m ByteString
- halt' :: MonadOCD m => m ()
- readMem :: forall a m. (MonadOCD m, FiniteBits a, Integral a) => MemAddress -> m a
- readMem32 :: MonadOCD m => MemAddress -> m Word32
- readMemCount :: forall a m. (MonadOCD m, FiniteBits a, Integral a) => MemAddress -> Int -> m [a]
- writeMem :: forall a m. (MonadOCD m, FiniteBits a, PrintfArg a, Integral a) => MemAddress -> [a] -> m ()
- writeMem32 :: MonadOCD m => MemAddress -> [Word32] -> m ()
Documentation
Instances
MonadTrans OCDT Source # | |
Defined in HOCD.Monad | |
Monad m => MonadError OCDError (OCDT m) Source # | |
Defined in HOCD.Monad throwError :: OCDError -> OCDT m a # catchError :: OCDT m a -> (OCDError -> OCDT m a) -> OCDT m a # | |
Monad m => MonadReader Socket (OCDT m) Source # | |
MonadIO m => MonadIO (OCDT m) Source # | |
Defined in HOCD.Monad | |
Monad m => Applicative (OCDT m) Source # | |
Functor m => Functor (OCDT m) Source # | |
Monad m => Monad (OCDT m) Source # | |
MonadCatch m => MonadCatch (OCDT m) Source # | |
MonadMask m => MonadMask (OCDT m) Source # | |
MonadThrow m => MonadThrow (OCDT m) Source # | |
Defined in HOCD.Monad | |
MonadIO m => MonadOCD (OCDT m) Source # | |
halt :: MonadOCD m => m ByteString Source #
Halt target
:: forall a m. (MonadOCD m, FiniteBits a, Integral a) | |
=> MemAddress | Memory address to read from |
-> m a |
Read single memory segment from MemAddress
Segment size depends on passed in Word type.
:: MonadOCD m | |
=> MemAddress | Memory address to read from |
-> m Word32 |
Shorthand for reading Word32
sized segment
:: forall a m. (MonadOCD m, FiniteBits a, Integral a) | |
=> MemAddress | Memory address to read from |
-> Int | Count |
-> m [a] |
Read multiple memory segments from MemAddress
according to count argument. Segment size depends
on passed in Word type.
:: forall a m. (MonadOCD m, FiniteBits a, PrintfArg a, Integral a) | |
=> MemAddress | Memory address to write to |
-> [a] | Data to write |
-> m () |
Write multiple memory segments to MemAddress
:: MonadOCD m | |
=> MemAddress | Memory address to write to |
-> [Word32] | Data to write |
-> m () |
Shorthand for writing Word32
sized segment