mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-09-11 06:45:36 +03:00
Problem: text-2.1 has Data.Text.IO.Utf8 whose name conflicts with our module with the same name. Solution: our module contains 2 functions: `readFile` and `writeFile`. They are implemented differently from `text` versions, but look semantically equivalent. Our functions are also polymorphic in the monad type, but that's orthogonal to the purpose of this package, so we can sacrifice this polymorphism. So it looks like our module doesn't add much value anymore and should be deleted. However, it's a good practice to deprecate something before deleting, so we deprecate this module instead. It will be deleted in a future version. Note that the same module for lazy Text remains intact, since there are apparently no such functions for lazy Text in text-2.1. |
||
---|---|---|
.. | ||
Test | ||
Test.hs | ||
Tree.hs |