bytestring-trie icon indicating copy to clipboard operation
bytestring-trie copied to clipboard

text-trie issue: Bug in `match`

Open tysonzero opened this issue 4 years ago • 1 comments
trafficstars

bytestring-trie (correct):

Trie.match (Trie.fromList [("foo", "0"), ("foob", "1")]) "foobar"
-- Just ("foob", True, "ar")

text-trie (incorrect):

Trie.match (Trie.fromList [("foo", "0"), ("foob", "1")]) "foobar"
-- Just ("f", True, "oobar")

Issues are disabled on text-trie for some weird reason, so raising it here and pinging @michaeljklein

tysonzero avatar Oct 07 '21 08:10 tysonzero

I was about to say that text-trie isn't mine, but then I saw the ping

wrengr avatar Oct 11 '21 06:10 wrengr