-
-
Save jdiez17/99b99d378128d9e53e18 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
data Message = Message { | |
sender :: String | |
, command :: Command | |
, location :: String | |
, payload :: String | |
} deriving (Show) | |
data Ping = Ping { | |
response :: String | |
} deriving (Show) | |
data Sequence = M Message | P Ping |
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
data Sequence = Message { | |
sender :: String | |
, command :: Command | |
, location :: String | |
, payload :: String | |
} | Ping { | |
response :: String | |
} deriving (Show) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment