DiscoverJavaScript to Haskell04: Practical Haskell
04: Practical Haskell

04: Practical Haskell

Update: 2018-08-15
Share

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.




  1. stack new hs-webapi

  2. Go into /package.yaml and under dependencies add ‘scotty’ and ‘aeson’

  3. Then run stack build

  4. … then wait (forgotten the compile times :eye_roll:) also 67 dependencies. I mean it’s not 867!!!!

  5. ..still waiting.




Resources





Follow





Comments 
In Channel
08: Docker

08: Docker

2018-09-06--:--

07: JSON Payloads

07: JSON Payloads

2018-08-25--:--

06: Routed Params

06: Routed Params

2018-08-23--:--

05: Routes In Haskell

05: Routes In Haskell

2018-08-16--:--

04: Practical Haskell

04: Practical Haskell

2018-08-15--:--

03: Lists

03: Lists

2018-08-09--:--

02:  Tooling

02: Tooling

2018-08-08--:--

00: Pilot

00: Pilot

2018-08-01--:--

00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

04: Practical Haskell

04: Practical Haskell