Data.Text.Encoding.Base16.decodeBase16Lenient fails in base16-1.0 with `Invalid UTF-8 stream`
- Dominant language
- Haskell
- Stars
- 5
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Data.Text.Encoding.Base16.decodeBase16Lenient fails in base16-1.0 with `Invalid UTF-8 stream`:
```
"\NUL\DC4ß\DLEGENS" `shouldBe` Data.Text.Encoding.Base16.decodeBase16Lenient "0014df1047454e53"
```
fails with
```
uncaught exception: UnicodeException
Cannot decode byte '\xdf': Data.Text.Encoding: Invalid UTF-8 stream
```
This is a regression as with `base16-0.3.2.1` this didn't fail and produced the string `"\NUL\DC4ß\DLEGENS"`
Also the [haddock](https://hackage.haskell.org/package/base16-1.0/docs/Data-Text-Encoding-Base16.html#v:decodeBase16Lenient) clearly states that `decodeBase16Lenient` never fails: `using a strategy that never fails, catching unicode exceptions raised in the process`.
Contributor guide
Assessment
This issue has not been assessed yet.