emilypi / Base16

BSD 3-Clause "New" or "Revised" License
4 stars 8 forks source link

`encodeBase16` should encode, not decode #15

Closed nfrisby closed 2 years ago

nfrisby commented 2 years ago

This line from the current tip of the master branch looks like a typo: encode calls decode. (And my script's calls to encodeBase16 are misbehaving.) Thanks!

https://github.com/emilypi/Base16/blob/9d6b2c8f74314104f3c47b7d547a68532785ad1c/src/Data/ByteString/Short/Base16.hs#L47

emilypi commented 2 years ago

wow strange - that's a very old typo indeed! i'll push out a fix asap

andrewthad commented 2 years ago

This fix is on GitHub master but is not yet available on Hackage.