Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free monad #27

Open
ev45ive opened this issue Jul 21, 2015 · 4 comments
Open

Free monad #27

ev45ive opened this issue Jul 21, 2015 · 4 comments

Comments

@ev45ive
Copy link

ev45ive commented Jul 21, 2015

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
Copy link
Collaborator

cwmyers commented Jul 21, 2015

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


Sent from Mailbox

On Wed, Jul 22, 2015 at 5:29 AM, Mateusz Kulesza [email protected]
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
Copy link

vegansk commented May 2, 2017

👍

@Mikejonesab12
Copy link

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
Copy link

colvint commented May 3, 2020

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

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

No branches or pull requests

5 participants