04: Practical Haskell
Update: 2018-08-15
Description
So, following the book is hard. I don’t really learn well that way. I have just enough knowledge that the first part feels boring and repetitive, but I don’t know what I don’t know, so where do I pick up, chapter 2 or maybe 3? So let’s take this from a real JS perspective.
Building an API
- So we know how to get and return json with HTTP requests in Node, how do we do it in Haskell? Ok, now build on that.
- Make it something relatable.
stack new hs-webapi
- Go into
/package.yaml
and under dependencies add ‘scotty’ and ‘aeson’ - Then run
stack build
- … then wait (forgotten the compile times :eye_roll:) also 67 dependencies. I mean it’s not 867!!!!
- ..still waiting.
Resources
Follow
- JavaScript to Haskell
- Twitter: @jstoHaskell()
- Site: JSToHaskell
- microblog: @jtomchak
- Jesse Tomchak
- Twitter: @jtomchak
Comments
In Channel