from Hacker News

Try Haskell

by boryas on 2/23/10, 2:24 AM with 56 comments

Edit: I'm not the creator of this, I just saw it on programming reddit and thought it would interest people here. With that said, if you want to give feedback to the creator, there would be a better place: http://www.reddit.com/r/haskell/comments/b58rk/try_haskell/
  • by munctional on 2/23/10, 3:47 AM

    Does anyone have any suggestions for beginner Haskell projects?

    I've read through some Haskell material before and tried following tutorials, but I always end up dropping it because I can't think of anything for which I would use it.

    I have no problem with functional and functional-esque programming (Erlang, Common Lisp, etc.), but I just can't come up with anything to do in Haskell. :(

    EDIT:

    Thanks for the great suggestions, everyone! I think I'll do some crpyo-based maths work in Haskell since that is what holds my interest at the moment. :-)

  • by gphil on 2/23/10, 3:09 AM

    Cool! I really like what the Haskell community is doing lately to reach out to new users. As someone who didn't know anything about functional programming a year ago, I can say that I've learned a lot just by messing around with it a little bit.
  • by Ezra on 2/23/10, 3:20 AM

    I applaud the effort, but this is far from complete. As far as I can tell, you can only do standalone expressions, to the exclusion of anything interesting.

        Type Haskell expressions in here.
        > let x = 10
        not an expression: `let x = 10'
    
    I understand that mueval has this limitation too? It's more defensible in the irc context that "state" would be disallowed. Here, it's just crippling.

    I don't need the mtl stuff, but being able to define a basic function would be nice!

    http://codepad.org/ will run full programs for you ... I guess that'll continue to be my tool of choice for online Haskell prototyping.

    Still, this project does seem promising.

  • by nym on 2/23/10, 3:09 AM

    Nice, but needs more steps... get me to the point where I understand what a Monad is, because I really want to know!
  • by simplify on 2/23/10, 3:18 AM

    The text area scrolls to the very top every time I type, not letting me see what I type [Safari 4.0.3]

    Pretty cool app. A tutorial to go along with it would do wonders.

  • by jashkenas on 2/23/10, 5:42 AM

    Ah, but can it reverse an infinite list?

        > reverse [1..]
    
        Time limit exceeded
  • by baguasquirrel on 2/23/10, 5:32 AM

    Pretty nifty. Needs import though, so you can do stuff like:

    :m + Data.List intersperse '.' "hello"

    And anything else you'd need if you want to use stuff other than just the Prelude.

  • by cool-RR on 2/23/10, 12:30 PM

    Please add help for something beyond "beginners".
  • by binarycheese on 2/23/10, 1:51 PM

    Very impressive
  • by baguasquirrel on 2/23/10, 5:32 AM

    Pretty nifty. Needs import though, so you can do stuff like:

    :m + Data.List intersperse '.' "hello"

    And anything else you'd need if you want to use stuff other than just the Prelude.

  • by baguasquirrel on 2/23/10, 5:32 AM

    Pretty nifty. Needs import though, so you can do stuff like:

    :m + Data.List intersperse '.' "hello"

    And anything else you'd need if you want to use stuff other than just the Prelude.

  • by baguasquirrel on 2/23/10, 5:34 AM

    Pretty nifty. Needs import though, so you can do stuff like:

    :m + Data.List intersperse '.' "hello"

    And anything else you'd need if you want to use stuff other than just the Prelude.