paint-brush
Untangling Haskell’s Stringsby@james_32022
776 reads
776 reads

Untangling Haskell’s Strings

by James Bowen6mMay 5th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

Company Mentioned

Mention Thumbnail
featured image - Untangling Haskell’s Strings
James Bowen HackerNoon profile picture
James Bowen

James Bowen

@james_32022

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Websiteperu
Nichesitemastery
Wikibacklink
Directorysiteslist