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
which GHC rejects, since the term appMessageA now has two conflicting types (as a field accessor).
shakespeare could probably throw a more informative error if it detects this case, or provide a "field name customization option" that would make these distinct, or simply not generate field labels like this, or expect DuplicateRecordFields + NoFieldSelectors and nested datatypes instead of a single sum.
@parsonsmatt
Thanks for the explanation.
What is the appMessageA field used for?
Perhaps it could just be an unnamed field?
This would be safer as well.
I'm not familiar with the codebase really, but I'd guess that the templating uses a record field name to access the value, since that tends to be easier to generate code for than pattern matching with fresh names
Results in:
The text was updated successfully, but these errors were encountered: