Skip to content

Commit cd1bfbd

Browse files
committed
Show the parsed token list
1 parent 671d87e commit cd1bfbd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎cabal-install/src/Distribution/Client/ProjectConfig/FieldGrammar.hs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ ignoredLens f s = s <$ f mempty
6666
-- supports quoted strings, and for unquoted tokens allows commas only inside
6767
-- balanced braces (e.g. ../{foo,bar}/).
6868
--
69-
-- >>> prettyShow <$> (simpleParsec "packages: */*.cabal ../{foo,bar}/" :: Maybe PackageLocationTokens)
70-
-- Just "packages: */*.cabal ../{foo,bar}/"
69+
-- >>> getPackageLocationTokens <$> (simpleParsec "*/*.cabal ../{foo,bar}/" :: Maybe PackageLocationTokens)
70+
-- Just ["*/*.cabal","../{foo,bar}/"]
7171
parsePackageLocationTokenQ :: CabalParsing m => m String
7272
parsePackageLocationTokenQ = parsecHaskellString <|> parsePackageLocationToken
7373
where
@@ -251,4 +251,3 @@ packageConfigPreferVersion =
251251

252252
-- $setup
253253
-- >>> import Distribution.Parsec (simpleParsec)
254-
-- >>> import Distribution.Pretty (prettyShow)

0 commit comments

Comments
 (0)