Comparing Haskell's Snap and Yesod web frameworks

后端 未结 4 1236
忘掉有多难
忘掉有多难 2020-12-02 03:17

The two Haskell web frameworks in the news recently are Yesod (at 0.8) and Snap (at 0.4).

It\'s quite obvious that Yesod currently supports a lot more features than

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:02

    Fair warning: I'm the lead developer of Yesod.

    I'm not sure what you don't like about the Javascript syntax: it is plain javascript with variable interpolation. As for CSS Yesod now has Lucius which allows you to also use plain CSS. For HTML, you can easily use any other library you want, including Heist (what Snap uses). That said, it's a bit of a funny thing to skip Yesod over CSS/Javascript syntax, when Snap doesn't even have a syntax for it. You are certainly welcome to their solution of just static files.

    Yesod comes with seamless support for authentication/authorization, type-safe URLs, widgets, email, and a bunch of little things all over the place (breadcrumbs, messages, ultimate destination). Plus, Yesod has a fairly rich set of add-on packages for things like comments and markdown, and a few large real-world code bases to pick at for examples. If any of these are attractive to you, you might want to check if your alternatives supports them.

提交回复
热议问题