Add `toUTF8LBS` and `toUTF8BS` conversions
commit0763b05a9e6ab7d2f891b0f6ff4f0ee30d6aae35
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 5 Aug 2017 16:55:47 +0000 (5 18:55 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 5 Aug 2017 17:16:20 +0000 (5 19:16 +0200)
tree5120e312dca00fe67114098ec847416b9bd5b6db
parent96bcbf1d77d5583a899d4d23c23b99644cc20d5c
Add `toUTF8LBS` and `toUTF8BS` conversions

The API was assymetric, as there was `fromUTF8(L)BS` but not
the dual operations.

The plan is refactor all occurences of

 - `fromUTF8 :: String -> String`
 - `toUTF8`  :: String -> String`

until `fromUTF8`/`toUTF8` is unused, at which point
we can officially deprecate or remove it.
Cabal/Distribution/Simple/Utils.hs
Cabal/Distribution/Utils/Generic.hs