Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Command req where Source #
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 type Reply (ReadMemory a) Source # 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 type Reply (WriteMemory a) Source # request :: WriteMemory a -> ByteString Source # reply :: WriteMemory a -> ByteString -> Either OCDError (Reply (WriteMemory a)) Source # |
Capture a |
data ReadMemory a Source #
Instances
(FiniteBits a, Num a) => Show (ReadMemory a) Source # | |
Defined in HOCD.Command 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 type Reply (ReadMemory a) Source # 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 #
WriteMemory | |
|
Instances
(FiniteBits a, PrintfArg a, Integral a) => Show (WriteMemory a) Source # | |
Defined in HOCD.Command 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 type Reply (WriteMemory a) Source # 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 #