4 ms·
This is the first Haskell web development framework (granted, I haven’t looked at very many) that would actually make me interested in trying web dev in Haskell
by all_factz 6y ago
This is the first Haskell web development framework (granted, I haven’t looked at very many) that would actually make me interested in trying web dev in Haskell. Coming from a Django/PHP background, it seems it provides a lot of desirable functionality and type-safety out of the box while also being relatively comprehensible for a Haskell newbie.
- oever 6y agoA few years back, I used Yesod. It was very nice because of the type-safety from top to bottom. Especially nice in combination with esqueleto. https://www.yesodweb.com/book https://www.yesodweb.com/book
- iso8859-1 6y agoDid you try Opaleye? This guy seems to prefer it: https://williamyaoh.com/posts/2019-12-14-typesafe-db-libraries.html https://williamyaoh.com/posts/2019-12-14-typesafe-db-librari...
- oever 6y agoI had not heard of Opaleye yet.
- whateveracct 6y agoEsqueleto and persistent are quite nice. Their one downside is SqlPersistT. The abstraction makes sense, but once you have people putting that thing as the base Monad in your stack, you're in trouble. Its nature means it holds a transaction (and therefore connection!) open during the entire action if used that way. This will cause big problems, like causing requests to queue on your connection pool if some other IO/parts of the code are slow and hogging the connection.
- _query 6y agoMany people in the IHP community are beginning their haskell journey with IHP. Check out e.g. 100 days of haskell by Lars Ulvestad: https://driftercode.com/blog/hundred-days-of-haskell-day-one/ https://driftercode.com/blog/hundred-days-of-haskell-day-one... Started around 60 days ago, and now here's the soon-to-be-production app: https://twitter.com/larsparsfromage/status/1314998566776172547 https://twitter.com/larsparsfromage/status/13149985667761725... :)