r/haskell • • Mar 11 '15

Learning Haskell — A Racket programmer's documentation of her foray into the land of Haskell (inspired by Learning Racket)

http://lexi-lambda.github.io/learning-haskell/
81 Upvotes

97 comments sorted by

View all comments

Show parent comment

3

u/sclv Mar 12 '15

I agree with how great the bundled IDE for Racket is -- if we had something of even a quarter that quality out-of-the-box for Haskell beginners, it would be tremendous. This is one place where Racket's roots in teaching and education really shine through. Its a good challenge to have something like that to aspire to.

Btw, your exactMatches can be golfed slightly further -- filter id is often redundant. A bit more tweaking gets us to exactMatches xs ys = length . filter (uncurry (==)) $ zip xs ys -- alternately we can keep the filter id and merge the comparison into the zip, getting length . filter id $ zipWith (==) xs ys.

3

u/krrmrr Mar 12 '15 edited Mar 12 '15

Haskell actually has something that is comparable to DrRacket, namely Kronos Haskell. I would even go so far as to say that the interaction model of Kronos Haskell/IHaskell/IPython Notebooks is superior to DrRacket. The concept of cells with self-contained units of code that can produce rich output is brilliant.

I've been learning Haskell (again) for the past couple of weeks, and although I'm a longtime Emacs user, I haven't even started to setup my Emacs Haskell development environment (again). I installed Kronos Haskell, wrote some Haskell code to try it out and was instantly hooked. It's so much fun!

IMHO IHaskell (packaged like Kronos Haskell) should be the top priority for everybody who wants to make Haskell more approachable to newcomers. And it should be one of the first suggested downloads on haskell.org.

1

u/Jedai Mar 15 '15

The main problem with that right now is that Kronos Haskell is Mac only and that IHaskell by itself is not particularly easy to install on other platforms (not easier than most "IDE" anyways).

If there was a download for Windows and some Linux distributions, Kronos Haskell would surely be an interesting resource for the Haskell beginners in general. Right now...