Day 7: Getting acquianted with Haskell

I’d like to start off by apologizing for the short blog post. I’ve been learning a lot of basics with Haskell so I dont have many interesting, noteworthy insights save the ones to follow. Enjoy 😃

Today, I completed 3 chapters of the Haskell Book. This book is written for absolute beginners, not only to Haskell but also to programming in general. This really forced me to get into the “wearing the white belt” mindset, because I did not want to skim any part with the chances of skipping over something important for Haskell.

I did come over a quite confusing problem that I will seek answers to:
6 / length [1, 2, 3]
… does not work!

The type of the length function returns:
length :: Foldable t => t a -> Int

For whatever reason, 6 `quot` length [1, 2, 3]
works just fine.

More on the “why” later…

On a non-Haskell-related-note, yesterday, I accidentally pushed my RSS feed post and I did not have time to look over it today.
Hopefully, I wont see any issues or catch missing information. If so, however, updates will be coming your way 😃


Last updated: