We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7f7134 + 73e460f commit 075bc88Copy full SHA for 075bc88
1 file changed
src/MicroCabal/Parse.hs
@@ -234,17 +234,12 @@ pSpaceList p = esepBy p' pWhite
234
where
235
-- sometimes (kan-extensions.cabal) there is a spurious comma,
236
-- so allow that
237
- p' = p <* eoptional (pStr ",")
+ p' = p <* eoptional (pStrW ",")
238
239
pOptCommaList :: P a -> P [a]
240
pOptCommaList p =
241
(pStrW "," *> pCommaList' p) -- it starts with a ',', so it must be comma separated
242
- <|< do
243
- a <- p -- parse one item
244
- -- now check if we have a comma or not, and pick the parser for the rest
245
- as <- (pStrW "," *> pCommaList' p) <|< pSpaceList p
246
- return (a:as)
247
- <|< ([] <$ pWhite)
+ <|< pSpaceList p
248
249
pVComma :: P Value
250
pVComma = VItems <$> pCommaList pItem
0 commit comments