[hs] Clean up parsing a bit
This commit is contained in:
parent
155118b5f2
commit
098214e56e
4 changed files with 41 additions and 30 deletions
|
|
@ -19,7 +19,7 @@ parser = manyLines $ Line
|
|||
<$> (decimal <* char '-')
|
||||
<*> (decimal <* space)
|
||||
<*> (anySingle <* char ':' <* space)
|
||||
<*> untilEol
|
||||
<*> line
|
||||
|
||||
validCount :: Line -> Bool
|
||||
validCount l = n >= lMin l && n <= lMax l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue