fix bug in match result display simplifier
Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
518a51a8a0
commit
70de4a7e6d
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ describeMatchResult descop l prefix = Just $
|
|||
|
||||
-- Remove unncessary outermost parens
|
||||
simplify True (MatchedOpen:rest) = case lastMaybe rest of
|
||||
Just MatchedClose -> simplify True (dropFromEnd 1 rest)
|
||||
Just MatchedClose -> simplify False (dropFromEnd 1 rest)
|
||||
_ -> simplify False rest
|
||||
-- (foo or bar) or baz => foo or bar or baz
|
||||
simplify _ (MatchedOpen:o1@(MatchedOperation {}):MatchedOr:o2@(MatchedOperation {}):MatchedClose:MatchedOr:rest) =
|
||||
|
|
Loading…
Add table
Reference in a new issue