3 ms·
I just coded this today, do you think this is a decent example? Uses monads to do logging around I/O that can fail, in such a way that your logs across multiple
by dustingetz 13y ago
I just coded this today, do you think this is a decent example? Uses monads to do logging around I/O that can fail, in such a way that your logs across multiple threads are guaranteed not to interleave. The code can be improved in many ways, this is a first pass "let's make this compile to prove it works".
https://gist.github.com/dustingetz/5606201 https://gist.github.com/dustingetz/5606201