Remove redundant endOfInput
parseLogLines consumes till endOfInput
This commit is contained in:
parent
6f66b53a30
commit
7e54c215b4
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ data LogStatus = InfoPresent | InfoMissing | InfoDead
|
|||
deriving (Eq, Show, Bounded, Enum)
|
||||
|
||||
parseLog :: L.ByteString -> [LogLine]
|
||||
parseLog = fromMaybe [] . A.maybeResult . A.parse (logParser <* A.endOfInput)
|
||||
parseLog = fromMaybe [] . A.maybeResult . A.parse logParser
|
||||
|
||||
logParser :: A.Parser [LogLine]
|
||||
logParser = parseLogLines $ LogLine
|
||||
|
|
Loading…
Reference in a new issue