We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message
Required for #97.
Current structure of the Message data type:
data Message = Message { messageSeverity :: !Severity , messageStack :: !CallStack , messageText :: !Text } log :: WithLog env Message m => Severity -> Text -> m ()
Proposed change:
data Msg sev = Msg { msgSeverity :: !sev , msgStack :: !CallStack , msgText :: !Text } type Message = Msg Severity log :: WithLog env (Msg sev) m => sev -> Text -> m ()
Few explanations:
Msg
type Message
The text was updated successfully, but these errors were encountered:
Severity
[#103] Make Message polymorphic, improve docs
b4f0cda
Resolves #103
[#103] Make Message polymorphic, improve docs (#104)
a5f43ce
* [#103] Make Message polymorphic, improve docs Resolves #103 * Make HLint happy
chshersh
Successfully merging a pull request may close this issue.
Required for #97.
Current structure of the
Message
data type:Proposed change:
Few explanations:
Message
data type is renamed toMsg
andMessage
is converted to thetype Message
alias for better backwards compatibility.The text was updated successfully, but these errors were encountered: