Skip to content

Data.ByteString.hGetLine is deprecated since bytestring-0.12 #166

Description

@e-kwsm
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])
    |                                   ^^^^^^^^^^^^^^^

, buf_hGetLine = Strict.hGetLine

, buf_hGetLine = \ h -> Strict.hGetLine h >>= \ l -> return (Lazy.fromChunks [l])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions