bytestring-trie
bytestring-trie copied to clipboard
text-trie issue: Bug in `match`
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
I was about to say that text-trie isn't mine, but then I saw the ping