Hacker News new | ask | show | jobs
by pjungwir 4069 days ago
I've got a side project webapp I'd like to use to learn some Haskell. What is the most mainstream Rails-like web application framework out there? By Rails-like I mostly mean convention-over-configuration, with a strong ecosystem of plugins so I don't have to re-invent the wheel for auth, file uploads, etc. So far I've seen:

- Yesod

- Snap

- Happstack

- Scotty

- Spock

Right now I'm learning Yesod, but I don't feel confident that's really what I want. Which of these are closest to Rails? Which are closest to Sinatra?

3 comments

Yesod would be the closest to Rails.

Scotty would be closer to Sinatra and Flask. Spock is similar to Scotty but comes with a few more built-in features like type-safe routing, sessions, etc.

I recommend Yesod but there are certainly some advanced metaprogramming features (routing, models).

Have you checked out the Yesod scaffold site? https://github.com/yesodweb/yesod-scaffold

Yesod is the closest thing to a Haskell version of Ruby on Rails.

Scotty and Spock are both Sinatra-like.

There's a lot of good info here: https://wiki.haskell.org/Web/Frameworks

Yesod's great. There's a bit of a learning curve, but it comes with a LOT of batteries.