from Hacker News

Snap for Beginners: Haskell Web Development

by biscarch on 3/1/14, 9:31 PM with 83 comments

  • by BadassFractal on 3/1/14, 11:00 PM

    Anybody know of solid super-entry level tutorials for starting Web Development with Haskell with less opinionated libraries like Scotty? Something that shows you how to slap together a solid cabal sandboxed ready-to-deploy application that's a mix of Scotty/Persistant/Esqueleto and all the other basics?

    Clojure has "Web Development with Clojure" which is basically what I listed above, except for Clojure rather than Haskell.

  • by boothead on 3/1/14, 10:52 PM

    Currently heading up a team of awesomely smart people building our back end in Haskell on snap. AMA!
  • by kayloos on 3/2/14, 9:07 AM

    There's a new web library that extends Scotty with basic session and authenticiation support, called Spock.

    I used it for a personal project of mine, which is creating an rss reader resembling the now dead iGoogle (which I loved), and although I had to read a lot of source code to get it to work, I really enjoyed how I worked with it, after figuring out the patterns on how to use it.

    It definitely isn't finished, it could use some love by some eager developers, but in my opinion it has the potential to be the best framework out there.

    - It extends scotty, so defining routes and control logic is fast and simple - It does not cage you in with a template language, or libraries that you don't want thrown in your face.

    For example, I used Scotty with my own templating language I made for fun (hemplate), as well as a validation library I made, which I hope to finish in the near future, (after I get a job).

    http://hackage.haskell.org/package/Spock

  • by MaxGabriel on 3/2/14, 4:20 AM

    Cool, this is really good for Snap. I heard good things about Snap, but a major reason I went to Yesod instead was that it had a book that I could work through (For a Haskell beginner like me, having some structure was important).
  • by egonschiele on 3/2/14, 3:03 AM

    Finally! Snap is a great framework but it's been missing a good guide for a while.
  • by cgag on 3/2/14, 5:42 AM

    I just started playing with Scotty while I learn, but I'm beginning working on a web app in Haskell and was leaning towards using Snap. I'll almost certainly pick this up. That new IO manager is a beautiful thing.
  • by rgbrgb on 3/1/14, 10:55 PM

    Please consider changing the title font. It is very hard on my eyes.
  • by sssilver on 3/1/14, 11:14 PM

    The typography makes my eyes bleed.
  • by maxharris on 3/2/14, 5:32 AM

    How does this compare with Meteor? I love Haskell, and if Snap can do the same kind of magic that Meteor does, I'll switch.
  • by acconrad on 3/2/14, 8:41 PM

    Is there a site analogous to the Rails Tutorial e-book, but for Haskell?
  • by sudeep1 on 3/2/14, 11:44 AM

    why anyone would want to build with snap leaving RoR behind.