Hacker News new | ask | show | jobs
by sshine 2034 days ago
I tried it this weekend as I wanted to convert a Flask prototype into something in a typed language. I’ve used Servant (Haskell) for other prototypes. For this particular demo, there were more JSON REST endpoints than “pages”, so both Servant and Http4s (Scala) felt more natural here to me.

Installing it was easy, even though this was my first time using Nix. I think shipping things with Nix, especially when what you ship is integrated, can be superior in Haskell to using stack or cabal. (Stack is easier, cabal is more flexible, neither handle dependencies outside of Haskell.)

I’ll definitely come back and check it out for another prototype soon. :)

1 comments

Interesting. I too am waiting for something ML-typed to tempt me away from Python/Flask. I render mostly server-side but based on services that actually or potentially serve JSON (it’s all one process but I’m careful that services don’t leak model objects)