laserpants / hashids-haskell

:zap: Haskell port of the Hashids library. :zap:
http://hashids.org/
MIT License
24 stars 10 forks source link

Decoding issue #12

Closed dciug closed 2 years ago

dciug commented 3 years ago

This is the error: Web/Hashids.hs:(342,5)-(347,18): Non-exhaustive patterns in Just str@(lottery, tail)

Version: 1.0.2.4

How I think it can be recreated: Change the context value used by the decoder and try to call decode a previously valid encoding (that used the old context).

joehealy commented 3 years ago

This can be caused by an invalid encoded string :(

laserpants commented 2 years ago

This was addressed in https://github.com/laserpants/hashids-haskell/commit/5fc889c7da79c13a93ed85243bc9d53bafb4c414 and published as version 1.0.2.7 to Hackage. Please re-open if the issue still persists.