emilypi / base64

RFC 4648-compliant Base64
BSD 3-Clause "New" or "Revised" License
31 stars 9 forks source link

Missing decodeBase64' ? #63

Open alexfmpe opened 6 days ago

alexfmpe commented 6 days ago

If we ignore the alphabet bits, then the API of https://hackage.haskell.org/package/base16-1.0/docs/Data-ByteString-Base16.html and https://hackage.haskell.org/package/base64-1.0/docs/Data-ByteString-Base64.html are pretty much the same save for there being no equivalent of decodeBase16' :: Base16 Text -> ByteString . This seems to happen for lazy/strict and for the url variant. Is this intentionally not present?

emilypi commented 5 days ago

Intentionally, because I wasn't a big fan of shea's contribution in the first place and it doesn't meet my personal threshold for significance. He had a specific use case, but I'm reluctant to add it unless it's demonstrably similar for base64.