unison icon indicating copy to clipboard operation
unison copied to clipboard

symboly argument names in lambdas lacking parens

Open aryairani opened this issue 1 year ago • 0 comments

test.laws.associativity.doc : Doc
test.laws.associativity.doc =
  {{
  Checks the associativity property of a binary operation.

  `` associativity gen f `` checks that for all elements `x`, `y`, and `z`
  returned by `gen`, `f x (f y z)` is equal to `f (f x y) z`.

  For example, if `f` is {Nat.+}, then {{ docExample 4 do x (+) y z -> x + y + z
  }} is equal to {{ docExample 4 do (+) x y z -> x + y + z }}.
  }}

renders as

test.laws.associativity.doc : Doc
test.laws.associativity.doc =
  {{
  Checks the associativity property of a binary operation.

  `` associativity gen f `` checks that for all elements `x`, `y`, and `z`
  returned by `gen`, `f x (f y z)` is equal to `f (f x y) z`.

  For example, if `f` is {Nat.+}, then {{ docExample 4 do x + y z -> x + y + z
  }} is equal to {{ docExample 4 do + x y z -> x + y + z }}.
  }}

which doesn't parse.

aryairani avatar Aug 30 '24 22:08 aryairani