From-text: type class to convert from Text A new Haskell package introduces the `IsText` type class with a `fromText` function to simplify conversion from `Text` to other textual data types like `ByteArray`, `ByteString`, and `OsPath`, using UTF-8 for binary types. The author created this package because existing alternatives do not support conversion from `Text` to `OsPath`, and they could not decide which existing library to contribute this functionality to. I released a new package which provides class IsText a where fromText :: Text - a aiming to simplify conversion from Text to other textual data types, including ByteArray , ByteString and OsPath . It uses UTF-8 when converting to binary types without an associated encoding. There is an overwhelming number of alternative packages for text conversions. To name a few in no particular order: At the moment none of them provide conversions from Text to OsPath . I could not decide which one to contribute such function to, so decided to create a new package.