Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Guide to Haskell strings (hasufell.github.io)
72 points by todsacerdoti on May 14, 2024 | hide | past | favorite | 6 comments


A very useful resource, thanks a lot Julian for this!


What a magnificent writeup. Much thanks, very useful, I always got a bit stuck on knowing about string types, their pitfalls and which to end up choosing, so I'm very happy with this useful document!


Finally someone who (correctly) argues that there aren't too many String types.


Are the Lazy variants ever a good idea? The author already argues against lazy IO. Are Lazy variants worth using for anything else? I always thought Haskell is typeful and that Lazy variants hide too much under the covers that should be exposed in the types.

Also I still don’t think there’s a great argument for [Char] other than its historical baggage.


I haven't seen a good use case for the lazy ones, versus some sort of iterator around chunks of strict ones.


The lazy ones are convenient when I want to write a quick, small script to deal with a small number of large files.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: