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:
parent
86169b6eb6
commit
8b4db1d3e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user