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

Supporting haskell execution #412

Closed
feature-not-a-bug opened this issue Jan 19, 2025 · 2 comments · Fixed by #414
Closed

Supporting haskell execution #412

feature-not-a-bug opened this issue Jan 19, 2025 · 2 comments · Fixed by #414

Comments

@feature-not-a-bug
Copy link
Contributor

I was hoping to get Haskell support for running interpreted code using the runhaskell utility. Test code:

fibs :: [Int]
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)

main = putStrLn $ show $ take 10 fibs

The usual usage in a presentation would be to have warnings suppressed with the -w flag, although having some ability to customize this could be useful

$  runhaskell -w test.hs
[0,1,1,2,3,5,8,13,21,34]
@mfontanini
Copy link
Owner

Could you create a PR changing this file accordingly? You should have a new entry for haskell with the right commands. e.g. see https://github.com/mfontanini/presenterm/pull/399/files for an example.

@feature-not-a-bug
Copy link
Contributor Author

Just created #414

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

Successfully merging a pull request may close this issue.

2 participants