Skip to content

Commit

Permalink
parsing: modify shellcommand read to match project
Browse files Browse the repository at this point in the history
  • Loading branch information
GoNZooo committed Sep 11, 2022
1 parent bdbdc62 commit 4d4d098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions basics/extras/parsing-with-megaparsec.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,9 @@ shellCommandP = do
-- to access standard out, standard error or the exit code.
_ <- MChar.char '.'
Megaparsec.choice
[ MChar.string "out" *> pure ShellStandardOut,
MChar.string "err" *> pure ShellStandardError,
MChar.string "code" *> pure ShellExitCode
[ MChar.string "out" $> ShellStandardOut,
MChar.string "err" $> ShellStandardError,
MChar.string "code" $> ShellExitCode
]

shellCommandTextP :: Parser [ShellCommandText]
Expand Down

0 comments on commit 4d4d098

Please sign in to comment.