[Haskell-cafe] Elm-like IDE for Haste projects
Alberto G. Corona
agocorona at gmail.com
Thu Sep 4 20:23:55 UTC 2014
Following the thread on lightweight Web interfaces for Haskell:
http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/112586
I finished an Elm-like IDE for Haste projects. The software is at:
https://github.com/agocorona/tryhplay
Running in a heroku instance:
http://tryplayg.herokuapp.com
Besides to edit-compile and run, it can also import , compile and run haste
projects from git repositories (Although this, like the rest of the project
is experimental).
I use it for my hplayground framework but it can run any haste project.
Using playground is easy to translate console programs to the browser and
have reactive effects
A simple example:
http://tryplayg.herokuapp.com/try/console.hs/edit
the hello-haste example:
http://tryplayg.herokuapp.com/try/hello-haste.hs/edit
Or something more complicated: the todo application, from todoMVC.com
written in Haste and hplayground:
http://tryplayg.herokuapp.com/try/todo.hs/edit
rename the programs if you modify them. Follow the instructions to download
the HTML generated, that include the Javascript generated. At this time
there are no permission controls so it is more or less like a wiki, but
heroku from time to time will reset the application.
It is a free instance on heroku so expect delays and request timeouts when
many people access to the application. I do not know what will happen.
Feedback welcome
My heroku instance is limited but It is easy to create your own instance in
heroku. Follow the install instructions.
Haste: https://github.com/valderman/haste-compiler
http://haste-lang.org
hplayground: https://github.com/agocorona/hplayground
--
Alberto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140904/2764a632/attachment.html>
More information about the Haskell-Cafe
mailing list