It seems only one of them is used, but not sure which.
Might this issue cause problems when compiling with google's closure compiler? (My text strings containing \n trigger exception when optimized with the closure compiler, could this be related? ).
If there's a reason to have to h$textFromString, do you mind adding a comment explaining it?
Looks like jsbits/string.js is not used (only jsbits/text.js) is listed in ghcjs-base.cabal. It also looks like jsbits/string.js uses an older method to write to the ByteArray.
h$textFromString
\n
trigger exception when optimized with the closure compiler, could this be related? ).h$textFromString
, do you mind adding a comment explaining it?