haskell / haskell/HTTP

Data.ByteString.hGetLine is deprecated since bytestring-0.12

Aperta Adatta ai principianti
#166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
186
Fork
59
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```
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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Open Network/BufferType.hs at lines 100 and 125 and inspect the two uses of Data.ByteString's deprecated hGetLine. Update those uses to the recommended Data.ByteString.Char8 function, then build the package and confirm the bytestring-0.12 deprecation warnings are gone.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
haskell
Ambito
networking
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
88/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.