@hackage from-text0.1
Type class to convert from Text
Categories
License
BSD-3-Clause
Maintainer
andrew.lelechenko@gmail.com
Links
Versions
- 0.1 Thu, 21 May 2026
from-text

This package provides
class IsText a where
fromText :: Text -> a
aiming to simplify conversion from Text to other textual data types, including ByteArray, ByteString and OsPath. When converting to binary types without an associated encoding, we use UTF-8.
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.