Merge pull request #656 from diogob/simplify-pTreePath

Remove unnecessary string conversions
This commit is contained in:
Joe Nelson
2016-06-29 20:37:15 -07:00
committed by GitHub
+1 -3
View File
@@ -61,9 +61,7 @@ pTreePath :: Parser (Path,Field)
pTreePath = do
p <- pFieldName `sepBy1` pDelimiter
jp <- optionMaybe pJsonPath
let pp = map cs p
jpp = map cs <$> jp
return (init pp, (last pp, jpp))
return (init p, (last p, jp))
pFieldForest :: Parser [Tree SelectItem]
pFieldForest = pFieldTree `sepBy1` lexeme (char ',')