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

Add ability to embed runnable code snippets in content #9

Open
beerendlauwers opened this issue Aug 5, 2016 · 1 comment
Open

Add ability to embed runnable code snippets in content #9

beerendlauwers opened this issue Aug 5, 2016 · 1 comment

Comments

@beerendlauwers
Copy link
Owner

Having the ability to embed runnable code snippets in content would enhance the usefulness of many types of content. Ideally, you would have a "default" GHC version that runs the code, guaranteed, and the ability to select a different GHC version to check if it still works.

Embedding the code snippet in a simple <div class="haskell-code-snippet"> would also allow validation of any code snippets to see if they typecheck (actually running them on the validation server sounds like a bad idea). Bonus points if this is done with multiple GHC versions, and that information is fed back into the snippet (perhaps with CSS classes added to the snippet: ghc-8-0 ghc -7-10-3).

@codexp
Copy link

codexp commented Jul 2, 2017

isn't it already done? but I can't find docs on how to use it...

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

No branches or pull requests

2 participants