mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-10-03 18:17:23 +03:00
8b4d41a6bd
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 |