quic frame degin idea
Last active
February 6, 2017 19:53
-
-
Save keizo042/255213b92bf31fad18fbd68dc3c850a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frame | |
*.hi | |
*.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Data.ByteString | |
main = undefined | |
class Frame a where | |
decodeFrame :: a -> ByteString | |
encodeFrame :: ByteString -> a | |
data AckFrame = AckFrame | |
decodeAckFrame :: AckFrame -> ByteString | |
decodeAckFrame = undefined | |
encodeAckFrame :: ByteString -> AckFrame | |
encodeAckFrame = undefined | |
instance Frame AckFrame where | |
decodeFrame = decodeAckFrame | |
encodeFrame = encodeAckFrame | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment