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

Support literal haskell! #22

Open
Najaf opened this issue Jul 19, 2012 · 4 comments
Open

Support literal haskell! #22

Najaf opened this issue Jul 19, 2012 · 4 comments
Labels

Comments

@Najaf
Copy link

Najaf commented Jul 19, 2012

Ahoy there!

Literal haskell is a fantastic writing medium, it also helps that it's markdown compatible. This issue description is in literal haskell, and can be compiled by any haskell compiler (as a file with a .lhs extension).

Code to compile is in markdown blockquotes like so:

factorial' :: [Int] -> Int
factorial' [] = 0
factorial' (x:xs) = x * factorial xs

In theory all you should have to do is add .lhs to your list of supported file types somewhere and it should just work. I totally get that there probably won't be much demand for this though.

@ghost
Copy link

ghost commented Jul 25, 2012

+1 for this, I just published a literate Haskell gist and was confused when it didn't show up.

@ghost
Copy link

ghost commented Feb 10, 2013

This is not exactly compatible with Markdown; the Haskell code should be highlighted and in monospace font. Blockquotes obviously don't do this.

@idan
Copy link
Owner

idan commented Aug 13, 2013

I'd like to support alternative rendering engines in the future, but this is very much in the "someday" category.

@Potherca
Copy link

Potherca commented Jun 1, 2019

🤔 Is still an issue?

Unless I'm mistaken, there is no longer any Haskell in this repo?

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

No branches or pull requests

3 participants