hosc-0.16: Haskell Open Sound Control
Sound.OSC.Packet.Class
Description
Typeclass for encoding and decoding OSC packets.
Synopsis
class OSC o where Source #
A type-class for values that can be translated to and from OSC Packets.
Packet
Minimal complete definition
toPacket, fromPacket
Methods
toPacket :: o -> Packet Source #
fromPacket :: Packet -> Maybe o Source #
Instances
toPacket :: Packet -> Packet Source #
fromPacket :: Packet -> Maybe Packet Source #
toPacket :: Bundle -> Packet Source #
fromPacket :: Packet -> Maybe Bundle Source #
toPacket :: Message -> Packet Source #
fromPacket :: Packet -> Maybe Message Source #
encodeOSC :: (Coding c, OSC o) => o -> c Source #
encodePacket . toPacket.
encodePacket
.
toPacket
decodeOSC :: (Coding c, OSC o) => c -> Maybe o Source #
fromPacket . decodePacket.
fromPacket
decodePacket