trbngr / infusio

Functional Infusionsoft API DSL for .NET
MIT License
4 stars 6 forks source link

Example of using loggin with the Free monad #5

Closed louthy closed 6 years ago

louthy commented 6 years ago

This is related to https://github.com/louthy/language-ext/issues/413 on lang-ext. This is how to do logging as part of a Free monad DSL

trbngr commented 6 years ago

Oh man....I didn't even think to expose logging as an op. Brilliant. Thx

louthy commented 6 years ago

I realised there’s a bug in the interpreter implementation of Log. I think I was having a bit of ‘a moment’ - anyway, I’m sure you can work it out, it should be calling Exe like everything else

trbngr commented 6 years ago

Thanks for this PR, louthy. It's working great.