lightweight web interface for Haskell?

Hi Cafe, Does anyone know of a website where I can write a few lines of Haskell and have them run? Ideally, there would be a place to write a module and then a place to load the module into GHCi. I seem to recall something that fit my needs at paste.hskll.org, but that site is no longer working. I'm asking because I'll be teaching an undergraduate course this fall in introductory Haskell. There are no prerequisites for the course, and my course roster suggests that I'll have several students with no programming background at all. (This is great, actually -- I love facilitating a new programmer's first steps!) It might be nice to get students off the ground quickly before bogging them down with installation details -- hence the website I'm looking for. Thanks! Richard

On Sat, Aug 23, 2014 at 9:36 PM, Richard Eisenberg
Hi Cafe,
Does anyone know of a website where I can write a few lines of Haskell and have them run? Ideally, there would be a place to write a module and then a place to load the module into GHCi. I seem to recall something that fit my needs at paste.hskll.org, but that site is no longer working.
I'm asking because I'll be teaching an undergraduate course this fall in introductory Haskell. There are no prerequisites for the course, and my course roster suggests that I'll have several students with no programming background at all. (This is great, actually -- I love facilitating a new programmer's first steps!) It might be nice to get students off the ground quickly before bogging them down with installation details -- hence the website I'm looking for.
Thanks! Richard _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
I'd recommend looking into FP Haskell Center[1], a full online Haskell IDE, or just using School of Haskell[2] which allows running code, but doesn't offer all IDE features (e.g., type information isn't present). Both are freely available, though if you're going to recommend a number of users to go onto the site at once, please give us a heads-up in advance so we can boost the base number of servers and avoid any delays in spinning up an EC2 instance for the extra load. Feel free to follow up privately if you have specific questions about how this would work for a course, this wouldn't be the first time FPHC has been used this way. Michael [1] https://www.fpcomplete.com/business/haskell-industry/ [2] https://www.fpcomplete.com/school

On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg
Does anyone know of a website where I can write a few lines of Haskell and have them run?
http://ideone.com (ghc 7.6.3) fpcomplete.com's online IDE has a free/community tier, although for this I suspect you can't meet the ToS -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery
On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg
wrote: Does anyone know of a website where I can write a few lines of Haskell and have them run?
http://ideone.com (ghc 7.6.3) fpcomplete.com's online IDE has a free/community tier, although for this I suspect you can't meet the ToS
Just to follow up publicly: the FP Complete terms of service should *not* prevent any kind of usage in this case. We're in the process of revising our ToS to make it clearer with the upcoming open publish model, but the simple explanation of that model is: you can do whatever you want in the IDE, but- like Github- all commits will be publicly viewable. If anyone has questions about this, feel free to contact me. Michael

Thanks for the many, varied responses to my query. I've learned more about all these tools!
Just to close the loop, though: I've decided not to go with any of these tools because of lack of REPL support. My approach to Haskell will not start with `main`, and I want students to get used to just writing functions first, before writing programs.
Thanks again for the pointers,
Richard
On Aug 25, 2014, at 1:35 PM, Michael Snoyman
On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery
wrote: On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg wrote: Does anyone know of a website where I can write a few lines of Haskell and have them run? http://ideone.com (ghc 7.6.3) fpcomplete.com's online IDE has a free/community tier, although for this I suspect you can't meet the ToS
Just to follow up publicly: the FP Complete terms of service should *not* prevent any kind of usage in this case. We're in the process of revising our ToS to make it clearer with the upcoming open publish model, but the simple explanation of that model is: you can do whatever you want in the IDE, but- like Github- all commits will be publicly viewable.
If anyone has questions about this, feel free to contact me.
Michael

One more suggestion then :-) SageMathCloud (https://cloud.sagemath.com/) now has ghc 7.6.3 running on it. It has a nice webeditor with haskell syntax highlighting and sharing of .hs files, and you can also pop open a terminal in the browser and interact with ghci directly. This basically gives a minimal unixy environment to play with the repl without having to do any installation work, etc. It isn’t necessarly rich with libraries, etc. But for giving a “real ghc” experience without the install, it might not be bad. —g On August 25, 2014 at 3:30:52 PM, Richard Eisenberg (eir@cis.upenn.edu) wrote:
Thanks for the many, varied responses to my query. I've learned more about all these tools!
Just to close the loop, though: I've decided not to go with any of these tools because of lack of REPL support. My approach to Haskell will not start with `main`, and I want students to get used to just writing functions first, before writing programs.
Thanks again for the pointers, Richard
On Aug 25, 2014, at 1:35 PM, Michael Snoyman wrote:
On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery wrote: On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg wrote: Does anyone know of a website where I can write a few lines of Haskell and have them run?
http://ideone.com (ghc 7.6.3) fpcomplete.com's online IDE has a free/community tier, although for this I suspect
you can't meet the ToS
Just to follow up publicly: the FP Complete terms of service should *not* prevent any
kind of usage in this case. We're in the process of revising our ToS to make it clearer with the upcoming open publish model, but the simple explanation of that model is: you can do whatever you want in the IDE, but- like Github- all commits will be publicly viewable.
If anyone has questions about this, feel free to contact me.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

William Stein just sent me a nice note follwing up on this: "I run SageMathCloud. If there are any libraries you want installed, just let me know (wstein@uw.edu). And if there is anything I should do to improve support for Haskell in SMC, let me know. Thanks, — William” For those unfamiliar with SMC by the way, here is a nice post that he recently wrote about it and the vision behind it (aspects of which, I’m sure are shared by many in the Haskell community). http://sagemath.blogspot.com/2014/08/what-is-sagemathcloud-lets-clear-some.h... Cheers, g. On August 25, 2014 at 10:10:22 PM, Gershom B (gershomb@gmail.com) wrote:
One more suggestion then :-) SageMathCloud (https://cloud.sagemath.com/) now has ghc 7.6.3 running on it. It has a nice webeditor with haskell syntax highlighting and sharing of .hs files, and you can also pop open a terminal in the browser and interact with ghci directly. This basically gives a minimal unixy environment to play with the repl without having to do any installation work, etc.
It isn’t necessarly rich with libraries, etc. But for giving a “real ghc” experience without the install, it might not be bad.
—g
On August 25, 2014 at 3:30:52 PM, Richard Eisenberg (eir@cis.upenn.edu) wrote:
Thanks for the many, varied responses to my query. I've learned more about all these tools!
Just to close the loop, though: I've decided not to go with any of these tools because of lack of REPL support. My approach to Haskell will not start with `main`, and I want students to get used to just writing functions first, before writing programs.
Thanks again for the pointers, Richard
On Aug 25, 2014, at 1:35 PM, Michael Snoyman wrote:
On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery wrote: On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg wrote: Does anyone know of a website where I can write a few lines of Haskell and have them run?
http://ideone.com (ghc 7.6.3) fpcomplete.com's online IDE has a free/community tier, although for this I suspect
you can't meet the ToS
Just to follow up publicly: the FP Complete terms of service should *not* prevent any
kind of usage in this case. We're in the process of revising our ToS to make it clearer with the upcoming open publish model, but the simple explanation of that model is: you can do whatever you want in the IDE, but- like Github- all commits will be publicly viewable.
If anyone has questions about this, feel free to contact me.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I may have missed this, but it'd be great if someone summarised the pointers in this thread on a Haskell Wiki page. Simon | -----Original Message----- | From: Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of | Gershom B | Sent: 27 August 2014 14:01 | To: Richard Eisenberg | Cc: haskell Cafe | Subject: Re: [Haskell-cafe] lightweight web interface for Haskell? | | William Stein just sent me a nice note follwing up on this: | | "I run SageMathCloud. If there are any libraries you want installed, | just let me know (wstein@uw.edu). And if there is anything I should | do to improve support for Haskell in SMC, let me know. | | Thanks, | | — William” | | For those unfamiliar with SMC by the way, here is a nice post that he | recently wrote about it and the vision behind it (aspects of which, I’m | sure are shared by many in the Haskell community). | | http://sagemath.blogspot.com/2014/08/what-is-sagemathcloud-lets-clear- | some.html | | Cheers, | g. | | | On August 25, 2014 at 10:10:22 PM, Gershom B (gershomb@gmail.com) wrote: | > One more suggestion then :-) SageMathCloud | (https://cloud.sagemath.com/) now has | > ghc 7.6.3 running on it. It has a nice webeditor with haskell syntax | highlighting and | > sharing of .hs files, and you can also pop open a terminal in the | browser and interact with | > ghci directly. This basically gives a minimal unixy environment to play | with the repl | > without having to do any installation work, etc. | > | > It isn’t necessarly rich with libraries, etc. But for giving a “real | ghc” experience | > without the install, it might not be bad. | > | > —g | > | > | > | > On August 25, 2014 at 3:30:52 PM, Richard Eisenberg (eir@cis.upenn.edu) | wrote: | > > Thanks for the many, varied responses to my query. I've learned more | about all these | > tools! | > > | > > Just to close the loop, though: I've decided not to go with any of | these tools because | > of | > > lack of REPL support. My approach to Haskell will not start with | `main`, and I want students | > > to get used to just writing functions first, before writing programs. | > > | > > Thanks again for the pointers, | > > Richard | > > | > > On Aug 25, 2014, at 1:35 PM, Michael Snoyman wrote: | > > | > > > | > > > | > > > | > > > On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery wrote: | > > > On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg wrote: | > > > Does anyone know of a website where I can write a few lines of | Haskell and have them run? | > > > | > > > http://ideone.com (ghc 7.6.3) | > > > fpcomplete.com's online IDE has a free/community tier, although for | this I suspect | > > you can't meet the ToS | > > > | > > > | > > > | > > > Just to follow up publicly: the FP Complete terms of service should | *not* prevent any | > > kind of usage in this case. We're in the process of revising our ToS | to make it clearer | > with | > > the upcoming open publish model, but the simple explanation of that | model is: you can | > > do whatever you want in the IDE, but- like Github- all commits will | be publicly viewable. | > > > | > > > If anyone has questions about this, feel free to contact me. | > > > | > > > Michael | > > | > > _______________________________________________ | > > Haskell-Cafe mailing list | > > Haskell-Cafe@haskell.org | > > http://www.haskell.org/mailman/listinfo/haskell-cafe | > > | > | > | | _______________________________________________ | Haskell-Cafe mailing list | Haskell-Cafe@haskell.org | http://www.haskell.org/mailman/listinfo/haskell-cafe

I think it was added here
http://www.haskell.org/haskellwiki/Learning_Haskell#Trying_Haskell_online
See
http://www.haskell.org/haskellwiki/index.php?title=Learning_Haskell&action=history
On Wed, Aug 27, 2014 at 9:20 PM, Simon Peyton Jones
I may have missed this, but it'd be great if someone summarised the pointers in this thread on a Haskell Wiki page.
Simon
| -----Original Message----- | From: Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of | Gershom B | Sent: 27 August 2014 14:01 | To: Richard Eisenberg | Cc: haskell Cafe | Subject: Re: [Haskell-cafe] lightweight web interface for Haskell? | | William Stein just sent me a nice note follwing up on this: | | "I run SageMathCloud. If there are any libraries you want installed, | just let me know (wstein@uw.edu). And if there is anything I should | do to improve support for Haskell in SMC, let me know. | | Thanks, | | — William” | | For those unfamiliar with SMC by the way, here is a nice post that he | recently wrote about it and the vision behind it (aspects of which, I’m | sure are shared by many in the Haskell community). | | http://sagemath.blogspot.com/2014/08/what-is-sagemathcloud-lets-clear- | some.html | | Cheers, | g. | | | On August 25, 2014 at 10:10:22 PM, Gershom B (gershomb@gmail.com) wrote: | > One more suggestion then :-) SageMathCloud | (https://cloud.sagemath.com/) now has | > ghc 7.6.3 running on it. It has a nice webeditor with haskell syntax | highlighting and | > sharing of .hs files, and you can also pop open a terminal in the | browser and interact with | > ghci directly. This basically gives a minimal unixy environment to play | with the repl | > without having to do any installation work, etc. | > | > It isn’t necessarly rich with libraries, etc. But for giving a “real | ghc” experience | > without the install, it might not be bad. | > | > —g | > | > | > | > On August 25, 2014 at 3:30:52 PM, Richard Eisenberg (eir@cis.upenn.edu ) | wrote: | > > Thanks for the many, varied responses to my query. I've learned more | about all these | > tools! | > > | > > Just to close the loop, though: I've decided not to go with any of | these tools because | > of | > > lack of REPL support. My approach to Haskell will not start with | `main`, and I want students | > > to get used to just writing functions first, before writing programs. | > > | > > Thanks again for the pointers, | > > Richard | > > | > > On Aug 25, 2014, at 1:35 PM, Michael Snoyman wrote: | > > | > > > | > > > | > > > | > > > On Sat, Aug 23, 2014 at 9:41 PM, Brandon Allbery wrote: | > > > On Sat, Aug 23, 2014 at 2:36 PM, Richard Eisenberg wrote: | > > > Does anyone know of a website where I can write a few lines of | Haskell and have them run? | > > > | > > > http://ideone.com (ghc 7.6.3) | > > > fpcomplete.com's online IDE has a free/community tier, although for | this I suspect | > > you can't meet the ToS | > > > | > > > | > > > | > > > Just to follow up publicly: the FP Complete terms of service should | *not* prevent any | > > kind of usage in this case. We're in the process of revising our ToS | to make it clearer | > with | > > the upcoming open publish model, but the simple explanation of that | model is: you can | > > do whatever you want in the IDE, but- like Github- all commits will | be publicly viewable. | > > > | > > > If anyone has questions about this, feel free to contact me. | > > > | > > > Michael | > > | > > _______________________________________________ | > > Haskell-Cafe mailing list | > > Haskell-Cafe@haskell.org | > > http://www.haskell.org/mailman/listinfo/haskell-cafe | > > | > | > | | _______________________________________________ | Haskell-Cafe mailing list | Haskell-Cafe@haskell.org | http://www.haskell.org/mailman/listinfo/haskell-cafe _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Il giorno 25/ago/2014, alle ore 21:30, Richard Eisenberg
Thanks for the many, varied responses to my query. I've learned more about all these tools!
Just to close the loop, though: I've decided not to go with any of these tools because of lack of REPL support. My approach to Haskell will not start with `main`, and I want students to get used to just writing functions first, before writing programs.
Have you seen IHaskell? It is very interactive! http://gibiansky.github.io/IHaskell/
Thanks again for the pointers, Richard

L.S., I have added the various suggestions here: https://www.haskell.org/haskellwiki/Learning_Haskell#Trying_Haskell_online Regards, Henk-Jan van Tuyl -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

sagemathCloud has a REPL
2014-08-26 8:23 GMT+02:00 Nicola Gigante
Il giorno 25/ago/2014, alle ore 21:30, Richard Eisenberg < eir@cis.upenn.edu> ha scritto:
Thanks for the many, varied responses to my query. I've learned more
about all these tools!
Just to close the loop, though: I've decided not to go with any of these
tools because of lack of REPL support. My approach to Haskell will not start with `main`, and I want students to get used to just writing functions first, before writing programs.
Have you seen IHaskell? It is very interactive!
http://gibiansky.github.io/IHaskell/
Thanks again for the pointers, Richard
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Alberto.

Perhaps tryhaskell.org matches what you're looking for? It comes with an
interactive tutorial which might be a good place to start—or, if you want,
I'm sure you could use it to set up your own tutorial just by changing the
code. However, I think it's mainly interactive and doesn't support writing
and loading modules.
It's a shame that paste.hskll.org is down, especially because it had
support for the diagrams library.
On Sat, Aug 23, 2014 at 11:36 AM, Richard Eisenberg
Hi Cafe,
Does anyone know of a website where I can write a few lines of Haskell and have them run? Ideally, there would be a place to write a module and then a place to load the module into GHCi. I seem to recall something that fit my needs at paste.hskll.org, but that site is no longer working.
I'm asking because I'll be teaching an undergraduate course this fall in introductory Haskell. There are no prerequisites for the course, and my course roster suggests that I'll have several students with no programming background at all. (This is great, actually -- I love facilitating a new programmer's first steps!) It might be nice to get students off the ground quickly before bogging them down with installation details -- hence the website I'm looking for.
Thanks! Richard _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Sat, Aug 23, 2014 at 8:43 PM, Tikhon Jelvis
Perhaps tryhaskell.org matches what you're looking for? It comes with an interactive tutorial which might be a good place to start—or, if you want, I'm sure you could use it to set up your own tutorial just by changing the code. However, I think it's mainly interactive and doesn't support writing and loading modules.
It's a shame that paste.hskll.org is down, especially because it had support for the diagrams library.
I moved the service to a new machine because a hard drive in the old one died, but unfortunately I had some trouble restarting the evaluation service (it has to be started in some special way, in an SELinux sandbox). I managed to get it up and running now. Codeworld is quite cool, but unfortunately Chris' goal of teaching programming with a simplified variant of Haskell might not align with the course's goals of teaching Haskell. I've mostly finished updating/completing the Gloss backend for GHCJS though. It supports keyboard and mouse input now, so you can really create games with it. The main loop is a bit glitchy still (sometimes draws older frames), it keeps hogging CPU even if the tab is in the background and sprites are not supported yet, so I still have a bit of work to do [1] [2] . If anyone is interested in setting up a Codeworld instance that uses Gloss instead of Codeworld's own simplified Haskell graphics library, I'd be happy to help. Students should be able to copy/paste their working code in a local file and compile it unchanged with native Gloss to get an application that runs in a GLUT/OpenGL window (and it should be reasonably easy to install that even on Windows now that the Haskell Platform comes with freeglut). At this point, it's unfortunately not yet possible to easily add a proper REPL easily to projects like Codeworld. Most of the infrastructure is already there (it's used for Template Haskell among other things), but it's missing a front end. Hopefully after GHCJS is (finally) released on Hackage and I've finished the new codegen and filled the biggest holes in the libraries I'll have some time to implement GHCJSi. luite [1] http://hdiff.luite.com/tmp/boids.jsexe/ (from gloss-examples) [2] http://hdiff.luite.com/tmp/pinhole.jsexe/ (by Omar Rizman, posted here: http://rsnous.com/posts/2014-08-07-pinhole-a-falling-ball-demo.html )

On Sun, Aug 24, 2014 at 2:19 PM, Luite Stegeman
I moved the service to a new machine because a hard drive in the old one died, but unfortunately I had some trouble restarting the evaluation service (it has to be started in some special way, in an SELinux sandbox). I managed to get it up and running now.
Oops, it died again since something is still wrong with the permissions,
I'm looking into it.

It's not perfect, but Chris Done's http://tryhaskell.org/ comes to mind.
There's also Google's (not officially endorsed) Codeworld:
https://github.com/google/codeworld http://www.codeworld.info/
Curious to see if anybody knows of any others.
Cheers,
Chris Allen
On Sat, Aug 23, 2014 at 1:36 PM, Richard Eisenberg
Hi Cafe,
Does anyone know of a website where I can write a few lines of Haskell and have them run? Ideally, there would be a place to write a module and then a place to load the module into GHCi. I seem to recall something that fit my needs at paste.hskll.org, but that site is no longer working.
I'm asking because I'll be teaching an undergraduate course this fall in introductory Haskell. There are no prerequisites for the course, and my course roster suggests that I'll have several students with no programming background at all. (This is great, actually -- I love facilitating a new programmer's first steps!) It might be nice to get students off the ground quickly before bogging them down with installation details -- hence the website I'm looking for.
Thanks! Richard _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (12)
-
Alan & Kim Zimmerman
-
Alberto G. Corona
-
Brandon Allbery
-
Christopher Allen
-
Gershom B
-
Henk-Jan van Tuyl
-
Luite Stegeman
-
Michael Snoyman
-
Nicola Gigante
-
Richard Eisenberg
-
Simon Peyton Jones
-
Tikhon Jelvis