1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Reformat command.

This commit is contained in:
Rob Rix 2018-08-02 16:28:40 -04:00
parent 9220177d5a
commit 84024a2001

View File

@ -177,7 +177,9 @@ data Command
| Error String
command :: TokenParsing m => m Command
command = token (char ':' *> (Step <$ string "step" <|> List <$ string "list")) <?> "command"
command = token (char ':' *> command) <?> "command"
where command = Step <$ string "step"
<|> List <$ string "list"
parseString :: Parser a -> String -> Either String a
parseString p = toResult . Trifecta.parseString (runParser p) mempty