monet / monet.js

monet.js - Monadic types library for JavaScript
https://monet.github.io/monet.js/
MIT License
1.59k stars 114 forks source link

Free monad #27

Open ev45ive opened 9 years ago

ev45ive commented 9 years ago

Hello, first its great work, love how far you pushed with monads here.. :-)

I see.first time Free implementation in. Js and here comes my question. Example is.bit scarce. Could you provide some example of how to use this implementation to build some usable AST and interpreter for it?

Would much appreciate and i.guess docs would benefit too. :-)

cwmyers commented 9 years ago

Great idea. Will do as soon as I get time. 

— Sent from Mailbox

On Wed, Jul 22, 2015 at 5:29 AM, Mateusz Kulesza notifications@github.com wrote:

Hello, first its great work, love how far you pushed with monads here.. :-) I see.first time Free implementation in. Js and here comes my question. Example is.bit scarce. Could you provide some example of how to use this implementation to build some usable AST and interpreter for it?

Would much appreciate and i.guess docs would benefit too. :-)

Reply to this email directly or view it on GitHub: https://github.com/cwmyers/monet.js/issues/27

vegansk commented 7 years ago

:+1:

Mikejonesab12 commented 6 years ago

Bump. I find that every other Monad is documented well enough to get started. However, Free is tough to understand and the current docs do not show a complete example. I am finding it difficult to translate Free from Haskell to understanding it in Monet.

colvint commented 4 years ago

Was looking for the same and found this from @welteki (thank you):

gist: https://gist.github.com/welteki/79177e5950daf0f2574e2f861b5f4c8b repl: https://repl.it/@welteki/monet-free-interpreter-kvs