decode "666f6f" == Right "foo" decode "66quux" == Left "invalid character at offset: 2" decode "666quux" == Left "invalid character at offset: 3"
decode "666f6f" == Right "foo" decode "66quux" == Left "invalid character at offset: 2" decode "666quu" == Left "invalid character at offset: 3"
decodeLenient "666f6f" == "foo" decodeLenient "66quuxx" == "f" decodeLenient "666quux" == "f" decodeLenient "666fquu" -- "fo"
decodeLenient "666f6f" == "foo" decodeLenient "66quux" == "f" decodeLenient "666quu" == "f" decodeLenient "666fqu" == "fo"