Hacker documentation for ByteString contains this example :
split :: Word8 -> ByteString -> [ByteString] split '\n' "a\nb\nd\ne" == ["a","b","d","e"]
It is as if '\n' converted to Word8 , but LANGUAGE OverloadedStrings seems to work only with strings, not with characters. What extension do I need to enable to use the sample code?
source share