1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Define a record selector for message content.

This commit is contained in:
Rob Rix 2017-07-21 12:10:34 -04:00
parent 86169b6eb6
commit 8b4db1d3e8

View File

@ -49,10 +49,10 @@ type Task = Freer TaskF
-- | A log message at a specific level.
data Message
= Error ByteString
| Warning ByteString
| Info ByteString
| Debug ByteString
= Error { messageContent :: ByteString }
| Warning { messageContent :: ByteString }
| Info { messageContent :: ByteString }
| Debug { messageContent :: ByteString }
deriving (Eq, Show)
formatMessage :: Message -> ByteString