| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
HOCD.Command
Documentation
class Command req where Source #
Minimal complete definition
Methods
request :: req -> ByteString Source #
default request :: Show req => req -> ByteString Source #
reply :: req -> ByteString -> Either OCDError (Reply req) Source #
Instances
| Command Halt Source # | |
| (Command a, Show a) => Command (Capture a) Source # | |
| (FiniteBits a, Integral a) => Command (ReadMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (ReadMemory a) Source # Methods request :: ReadMemory a -> ByteString Source # reply :: ReadMemory a -> ByteString -> Either OCDError (Reply (ReadMemory a)) Source # | |
| (FiniteBits a, Integral a, PrintfArg a) => Command (WriteMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (WriteMemory a) Source # Methods request :: WriteMemory a -> ByteString Source # reply :: WriteMemory a -> ByteString -> Either OCDError (Reply (WriteMemory a)) Source # | |
Constructors
| Halt |
Constructors
| Capture a |
data ReadMemory a Source #
Constructors
| ReadMemory | |
Fields | |
Instances
| (FiniteBits a, Num a) => Show (ReadMemory a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> ReadMemory a -> ShowS # show :: ReadMemory a -> String # showList :: [ReadMemory a] -> ShowS # | |
| (FiniteBits a, Integral a) => Command (ReadMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (ReadMemory a) Source # Methods request :: ReadMemory a -> ByteString Source # reply :: ReadMemory a -> ByteString -> Either OCDError (Reply (ReadMemory a)) Source # | |
| type Reply (ReadMemory a) Source # | |
Defined in HOCD.Command | |
data WriteMemory a Source #
Constructors
| WriteMemory | |
Fields
| |
Instances
| (FiniteBits a, PrintfArg a, Integral a) => Show (WriteMemory a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> WriteMemory a -> ShowS # show :: WriteMemory a -> String # showList :: [WriteMemory a] -> ShowS # | |
| (FiniteBits a, Integral a, PrintfArg a) => Command (WriteMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (WriteMemory a) Source # Methods request :: WriteMemory a -> ByteString Source # reply :: WriteMemory a -> ByteString -> Either OCDError (Reply (WriteMemory a)) Source # | |
| type Reply (WriteMemory a) Source # | |
Defined in HOCD.Command | |
parseMem :: (FiniteBits a, Integral a) => ByteString -> Either OCDError [a] Source #