Data.ByteString.hGetLine is deprecated since bytestring-0.12
- 主要语言
- Haskell
- 星标
- 186
- 派生
- 59
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
Network/BufferType.hs:100:28: warning: [GHC-68441] [-Wdeprecations]
In the use of `hGetLine' (imported from Data.ByteString):
Deprecated: "Deprecated since @bytestring-0.12@. Use 'Data.ByteString.Char8.hGetLine' instead. (Functions that rely on ASCII encodings belong in "Data.ByteString.Char8")"
|
100 | , buf_hGetLine = Strict.hGetLine
| ^^^^^^^^^^^^^^^
Network/BufferType.hs:125:35: warning: [GHC-68441] [-Wdeprecations]
In the use of `hGetLine' (imported from Data.ByteString):
Deprecated: "Deprecated since @bytestring-0.12@. Use 'Data.ByteString.Char8.hGetLine' instead. (Functions that rely on ASCII encodings belong in "Data.ByteString.Char8")"
|
125 | , buf_hGetLine = \ h -> Strict.hGetLine h >>= \ l -> return (Lazy.fromChunks [l])
| ^^^^^^^^^^^^^^^
```
https://github.com/haskell/HTTP/blob/e0ea99c332cdaccc7921d96967eb1dda3db003c8/Network/BufferType.hs#L100
https://github.com/haskell/HTTP/blob/e0ea99c332cdaccc7921d96967eb1dda3db003c8/Network/BufferType.hs#L125
贡献指南
这个仓库没有索引到贡献指南
调研方向
打开 Network/BufferType.hs 的第 100 行和第 125 行,检查两处对 Data.ByteString 已弃用的 hGetLine 的使用。将这些用法更新为推荐的 Data.ByteString.Char8 函数,然后构建该包并确认 bytestring-0.12 的弃用警告已消失。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- haskell
- 领域
- networking
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 88/100