Remove unnecessary string conversions
This commit is contained in:
@@ -61,9 +61,7 @@ pTreePath :: Parser (Path,Field)
|
|||||||
pTreePath = do
|
pTreePath = do
|
||||||
p <- pFieldName `sepBy1` pDelimiter
|
p <- pFieldName `sepBy1` pDelimiter
|
||||||
jp <- optionMaybe pJsonPath
|
jp <- optionMaybe pJsonPath
|
||||||
let pp = map cs p
|
return (init p, (last p, jp))
|
||||||
jpp = map cs <$> jp
|
|
||||||
return (init pp, (last pp, jpp))
|
|
||||||
|
|
||||||
pFieldForest :: Parser [Tree SelectItem]
|
pFieldForest :: Parser [Tree SelectItem]
|
||||||
pFieldForest = pFieldTree `sepBy1` lexeme (char ',')
|
pFieldForest = pFieldTree `sepBy1` lexeme (char ',')
|
||||||
|
|||||||
Reference in New Issue
Block a user