You can keep reading here or jump to my blog to get the full experience, including the wonderful pink, blue and white palette.
This is part of a series:
We decided to go with Servant to rewrite the current Rails API for Stream. We don't really have a strong reason for that. We just like it and we believe it will allow us to do some cool stuff down the line!
Also, we picked Stack because it's what we are used to and seems to be less cryptic than Cabal.
We created the project with the following command:
stack new haskell servant # ^ Create a new project.. # ^ ..in a new haskell/ folder.. # ^ ..using the Servant template.
The Servant template creates a dummy application with an hardcoded endpoint and some tests that allow to start playing with code right away.
Stream is already using CircleCI, so we opened the Haskell languge guide and started copy / pasting like there was no tomorrow.
We ended up with the following config.yml file that supports Rails, Elm and Haskell. See inlined comments for more info.
Get the latest content via email from me personally. Reply with your thoughts. Let's learn from each other. Subscribe to my PinkLetter!