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

Haskell quick dev mode #66

Open
4 tasks
charleso opened this issue Mar 9, 2017 · 0 comments
Open
4 tasks

Haskell quick dev mode #66

charleso opened this issue Mar 9, 2017 · 0 comments

Comments

@charleso
Copy link
Contributor

charleso commented Mar 9, 2017

Currently the dev loop for haskell projects is to restart the webapp every time a template changes (which is best done in ghci but is still manual).

We can do better.

The current thinking is that we use hint to reload the haskell dynamically. Some proof-of-concept work has been started here, with some success.

https://github.com/ambiata/loom/compare/wip/hint

The things that will need to be done for this to be production ready:

  • Calculate GHC_PACKAGE_PATH for a haskell project, could live in mafia
  • Mafia "setup" which initialises a haskell project, but doesn't compile anything. Otherwise we would want to run build and ignore any errors.
  • Either merge Add reload haskell-hint/hint#26 or fork to ambiata
  • Run a separate http server to intercept calls to the real application, show any build errors or wait until it is restarted on changes
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

1 participant