2 ms·
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
by pjungwir 12y 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?
- creichert 12y agoYesod 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 https://github.com/yesodweb/yesod-scaffold
- kyllo 12y agoYesod 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 https://wiki.haskell.org/Web/Frameworks
- akurilin 12y agoYesod's great. There's a bit of a learning curve, but it comes with a LOT of batteries.