Remove unnecessary string conversions

This commit is contained in:
Diogo Biazus
2016-06-29 00:18:29 -04:00
parent 67668a02c2
commit 376b67be9e
+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 ',')