News for hackers. Stuff that matters.
Re:A Dead-Simple Web Stack in Haskell by verttii on Monday November 18, 2019 @06:23PM (#21569213)
This is a great tutorial for getting up and running fast. I started off with Spock too but grew out of it pretty quickly.

It's painful in Haskell you're learning it but feel you're not able to generate anything real for the first month(s) with it. Unfortunately, there's not many up-to-date tutorials like these available for beginners.

Re:A Dead-Simple Web Stack in Haskell by dwcnnnghm on Monday November 18, 2019 @10:12PM (#21570365)
Do you have any recommendations for next steps beyond Spock?

I learned Haskell at uni and am interested in going back to it for web work (instead of Erlang). Any insights you might be able to share would be really helpful!

Re:A Dead-Simple Web Stack in Haskell by verttii on Tuesday November 19, 2019 @04:22AM (#21571622)
Servant. It takes a while to pick it up but it's well worth the effort. You end up with an automatically documented type safe API and you can even generate client functions for other languages using Swagger based on the spec. It has excellent documentation too, the only hard part really is figuring out the handler pattern.

As for the SQL story, that's more fragmented. I'm still trying to figure out the best next step myself. I started off with Persistent & Esqueleto but now looking at BEAM, Selda and Squeal for more control over the queries.

If you use Persistent as the persistence layer, check out Matt Parsons' blog for a nice intro: https://www.parsonsmatt.org/2016/07/08/servant-persistent_up...

I'm actually coming from Elixir myself. I have to admit Haskell feels funny at times but admittedly a lot more robust.