Skip to content
New issue

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

Add WithLogger monad for deriving via #44

Merged
merged 25 commits into from
Jun 3, 2024
Merged

Conversation

chris-martin
Copy link
Contributor

@chris-martin chris-martin commented May 31, 2024

Simpler replacement for #43. This is just a minor version bump now since it's only additions.

pbrisbin

This comment was marked as resolved.

@chris-martin

This comment was marked as resolved.

@chris-martin chris-martin requested a review from pbrisbin June 3, 2024 17:11
README.lhs Outdated Show resolved Hide resolved
README.lhs Show resolved Hide resolved
README.lhs Show resolved Hide resolved
package.yaml Outdated Show resolved Hide resolved
resolver: lts-12.26
resolver: lts-13.0

This comment was marked as resolved.

@chris-martin chris-martin requested a review from pbrisbin June 3, 2024 17:26
pbrisbin

This comment was marked as resolved.

@chris-martin chris-martin enabled auto-merge (squash) June 3, 2024 18:09
@chris-martin chris-martin disabled auto-merge June 3, 2024 18:09
@chris-martin chris-martin merged commit e4879ce into main Jun 3, 2024
9 checks passed
@chris-martin chris-martin deleted the chris/WithLogger branch June 3, 2024 18:11
runLoggingT f $ \loc source level msg ->
runLogAction logger loc source level msg
runLoggerLoggingT env f =
runLoggingT f (runLogAction logger) `finally` flushLogStr logger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooo, I like how this un-sectioned the finally 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants