Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- splitCommandList :: [Word8] -> [(Word8, [Word8])]
- getCommand :: C parser => Word8 -> Fragile parser Command
- getCommands :: C parser => Partial parser [Command]
- data Command
- = Stop
- | Play
- | DeferredPlay
- | FastForward
- | Rewind
- | RecordStrobe
- | RecordExit
- | RecordPause
- | Pause
- | Eject
- | Chase
- | CommandErrorReset
- | Reset
- | Wait
- | Resume
- runParser :: Partial (T ByteList) a -> ByteList -> (PossiblyIncomplete a, [UserMessage])
Documentation
getCommand :: C parser => Word8 -> Fragile parser Command Source #
getCommands :: C parser => Partial parser [Command] Source #
Read MIDI machine control commands until an F7 marker for SysEx end.
runParser :: Partial (T ByteList) a -> ByteList -> (PossiblyIncomplete a, [UserMessage]) Source #