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

Use annotated Haskell modules as notebook format #28

Open
amigalemming opened this issue Mar 16, 2019 · 1 comment
Open

Use annotated Haskell modules as notebook format #28

amigalemming opened this issue Mar 16, 2019 · 1 comment

Comments

@amigalemming
Copy link
Contributor

Currently hyper-haskell uses a custom JSON format for its notebooks.
What about to also support loading Haskell modules, i.e. parsing LANGUAGE pragmas, import statements and top-level definitions? It would simplify to switch between hyper-haskell and GHCi.
A problem would be that the user might expect that all module information and even formatting is maintained when hyper-haskell writes back an edited module. Also there must be a way to store cell inputs like this one:

test <- return “Test”
test
@HeinrichApfelmus
Copy link
Owner

Since there a notebook is not a bona fide Haskell module, I do not think that it makes sense to use plain .hs file as a notebook format. However, it might be sensible to use literal Haskell files as notebook format.

This would be very similar to, e.g. R Markdown.

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