simplified a bunch of Maybe handling
This commit is contained in:
parent
efa7f54405
commit
cad0e1c8b7
19 changed files with 81 additions and 140 deletions
|
@ -71,9 +71,7 @@ instance Read LogLine where
|
|||
-- Such lines have a status of Undefined.
|
||||
readsPrec _ string =
|
||||
if length w == 3
|
||||
then case pdate of
|
||||
Just v -> good v
|
||||
Nothing -> bad
|
||||
then maybe bad good pdate
|
||||
else bad
|
||||
where
|
||||
w = words string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue