Opens profile photo
Follow
Click to Follow joyofhaskell
The Joy of Haskell
@joyofhaskell
Books about Haskell by and
Education CompanyMontanajoyofhaskell.comJoined January 2017

The Joy of Haskell’s Tweets

📖 "Sockets and Pipes: Connect with Haskell" leanpub.com/sockets-and-pi Now 70% complete! 1 - Handles 2 - Chunks 3 - Bytes 4 - Sockets 5 - HTTP 6 - HTTP types 7 - Encoding 8 - Responding 9 - Content types 10 - Change 🆕 11 - Streaming 🆕 12 - ListT IO
1
53
Show this thread
> Now, I feel confident I can start writing some Haskell for my own personal projects and figure it out on my own. [...] It just needs 7-8 hours or so if you have access to a computer where you can read and code at the same time. Finding Success 📖
16
In chapter 9, we move on from plain text ASCII responses and use new content types: UTF-8 (the `text` library), HTML (the `blaze-html` library), and JSON (the `aeson` library). Includes exercises about when typeclass-based API is appropriate and why type ambiguity occurs.
2
Show this thread
Chapter 8 is all about constructing HTTP responses, imagining ourselves in the position of a web server library author. Along the way, a little side trip about the different types of integers arises. As our web server is coming together, we do some more testing with curl.
1
2
Show this thread
In chapter 6, we read through the HTTP specification and write Haskell types. Chapter 7 uses the bytestring library's Builder type to write encoding functions for these types, with some digressions to discuss some simple performance testing and the ever-useful foldMap function.
1
2
Show this thread