parenthesize match description as needed to avoid ambiguity
authorJoey Hess <joeyh@joeyh.name>
Tue, 25 Jul 2023 17:39:40 +0000 (13:39 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 25 Jul 2023 17:40:23 +0000 (13:40 -0400)
commitf280d3804570a07aae799a6c5d8c8d90e7febc0b
tree4d076b029591e07518588865d1287ab6c2cc67a3
parente9a98d03532d850d5d009eca3c289ce66c6e504c
parenthesize match description as needed to avoid ambiguity

While avoiding most unncessary parens.

Once case where unncessary parens are not avoided is:

not ( ( not foo and baz ) )

It would be good eventually to remove doubled parens like these.

Sponsored-by: Dartmouth College's DANDI project
Utility/Matcher.hs