Derive hash for tag unions with a discriminant

This commit is contained in:
Ayaz Hafiz 2022-10-04 17:19:30 -05:00
parent 5eb00c4f94
commit ff70832068
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 366 additions and 64 deletions

View file

@ -294,7 +294,8 @@ fn tag_one_label_zero_args() {
\#Derived.bytes, #Derived.fmt ->
Encode.appendWith
#Derived.bytes
(when #Derived.tag is A -> Encode.tag "A" [])
(when #Derived.tag is
A -> Encode.tag "A" [])
#Derived.fmt
"###
)