You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With instance chains you can distinguish between Product a (Product b c) and Product (Product a b) c. It would be helpful to note the ambiguity and what the compiler generates in practice.
The text was updated successfully, but these errors were encountered:
natefaubion
changed the title
Document the associativity of Product that the compiler generates
Document the associativity of Product and Sum that the compiler generates
Jul 30, 2018
Ideally, the compiler would bracket up Sums and Products so as to minimize the
depth of the resulting tree; this would help generate faster code when
constructing or pattern-matching on generic representation types. This nesting
may change in a future release, so it is recommended to avoid depending on the
way the compiler chooses to nest Sums and Products if at all possible.
JordanMartinez
changed the title
Document the associativity of Product and Sum that the compiler generates
[generics-rep] Document the associativity of Product and Sum that the compiler generates
Dec 26, 2020
With instance chains you can distinguish between
Product a (Product b c)
andProduct (Product a b) c
. It would be helpful to note the ambiguity and what the compiler generates in practice.The text was updated successfully, but these errors were encountered: