today I'd like to see how hard it is to write a web server in Haskell, using as much ready-made stuff as I can.
At the moment, I'm trying Spock (https://www.spock.li) and I'm a couple of minutes into it downloading packages. And I thought npm was slow!
welp, I tried to compile the code in the tutorial and encountered this problem - https://stackoverflow.com/questions/61154102/building-the-spock-tutorial-example-fails - it doesn't work with the version of GHC it automatically installed.
So I've bounced off haskell again!
I've had a much nicer time working through "The Joy of Elixir", which ends with a little web server! https://joyofelixir.com/toc.html
@christianp if you want to (eventually) try again, i can recommend looking at yesod, which I like to use for web frontends. It comes with a book, and since it’s been around for a while (at least 10 years i think?) it’s stable enough that most examples floating around still work, too (in the entire book i think i had to change something only once to make it work)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!