Skip to content

Instantly share code, notes, and snippets.

@funrep
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funrep/8704669 to your computer and use it in GitHub Desktop.
Save funrep/8704669 to your computer and use it in GitHub Desktop.
crazy and most likely stupid idea i got on the bus
Note to self: possible to write a Lisp-like DSL within Haskell using Writer monad?
main = runLisp $ do
def "f" $ do
args $ do
"x"
"y"
body $ do
"x" + "y"
lispPrint $ "f" $ do
3
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment