mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Reformat command.
This commit is contained in:
parent
9220177d5a
commit
84024a2001
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user