Skip to content

Is it possible to convert an effectful function into a IO function to be stored in a data structure? #275

Answered by arybczak
newhoggy asked this question in Q&A
Discussion options

You must be logged in to vote

If it's for logging in multiple threads, ConcUnlift Persistent Unlimited seems like the best option, but generally I wouldn't do it this way and use existing library, either log-effectful or co-log-effectful.

ForkUnlift

It's SeqForkUnlift and thus only for a single thread.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@newhoggy
Comment options

@ocharles
Comment options

@arybczak
Comment options

Answer selected by newhoggy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants