haskell / haskell/text

`decodeUtf8` / `decodeUtf8'` situation

未关闭
#247 11 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
documentation feature request
主要语言
Haskell
星标
421
派生
163
PR 合并指标
30 天内没有已合并 PR

描述

There are a few issues with the current situation:

+ Decoding/encoding from UTF-8 is a really common use case, but requires a separate import (`Data.Text.Encoding`)
+ The best name (`decodeUtf8`) is taken by the partial version of the function
+ `decodeUtf8'` doesn't mean anything, you just have to know the `'` means it's the total version

Is there anything we could do to improve this situation? It doesn't bother me, but it's tough on people that are new to haskell. I know we're constrained by backwards compatibility here because so many packages use `text`, but I thought it would be worth thinking about.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。