Problem: we consider using Text everywhere a good practice, but many libraries use String instead, and some function may perform toString just to scan/modify text contents. This may cause unnecessary toText followed by toString conversions.
Solution: add rewrite rules for this case.
Probably toString . (fromString :: String -> Text) case would be also interesting.
Problem: we consider using
Text
everywhere a good practice, but many libraries useString
instead, and some function may performtoString
just to scan/modify text contents. This may cause unnecessarytoText
followed bytoString
conversions.Solution: add rewrite rules for this case.
Probably
toString . (fromString :: String -> Text)
case would be also interesting.