Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Add handler functions for dealing with Writers and Trace interactively #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

axman6
Copy link

@axman6 axman6 commented Jun 9, 2017

One of the common uses for Writer is to provide pure logging. Sometimes it is useful to be able to get these logging values as they occur during interpretation. I've added functions for interpreting Writer and Trace in terms of another effect, such as IO, allowing Writer to be used for logging, using different logging levels and handle each level differently (a use case that has come up at work where we want to add tracing info but ignore it unless debugging).

@axman6 axman6 changed the title Add key handler functions for dealing with Writers and Trace interactively Add handler functions for dealing with Writers and Trace interactively Jun 9, 2017
@xkollar
Copy link
Member

xkollar commented Jun 10, 2017

Hi @axman6. Would pr #30 solve the part with the Trace effect?

@axman6
Copy link
Author

axman6 commented Jun 10, 2017

@xkollar looks perfect to me!

@xkollar
Copy link
Member

xkollar commented Jun 10, 2017

@axman6: thanks for having a look. I'll try harder to get it into a master :-).

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

Successfully merging this pull request may close these issues.

2 participants