Too Long; Didn't Read
Haskell is not without its faults. One of the most universally acknowledged annoyances, even for pros, is keeping track of the <strong>different string types</strong>. There are, in total, five different types representing strings in Haskell. Remember Haskell is strongly typed. So if we want to represent strings in different ways, we have to have different types for them. This motivates the need for these five types, all with slightly different use cases. It’s not so bad when you’re using any one of them. But when you constantly have to convert back and forth between them, it can be a major hassle. In this article we’ll go over these five different types. We’ll examine their different use cases, and observe how to convert between them.