mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +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.
|
-- | A log message at a specific level.
|
||||||
data Message
|
data Message
|
||||||
= Error ByteString
|
= Error { messageContent :: ByteString }
|
||||||
| Warning ByteString
|
| Warning { messageContent :: ByteString }
|
||||||
| Info ByteString
|
| Info { messageContent :: ByteString }
|
||||||
| Debug ByteString
|
| Debug { messageContent :: ByteString }
|
||||||
deriving (Eq, Show)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
formatMessage :: Message -> ByteString
|
formatMessage :: Message -> ByteString
|
||||||
|
Loading…
Reference in New Issue
Block a user