The first bug prevented compilation and was fixed by adding T.pack to convert String to Text.
The second bug relates to issue #38 and caused ADTs to be serialised improperly. Constructor alternatives were only distinguished by their field types, which led to problems if different constructors had the same field types. The fix is to include the constructor name in the serialised value.
This fixes two bugs in Derive.hs.
The first bug prevented compilation and was fixed by adding T.pack to convert String to Text.
The second bug relates to issue #38 and caused ADTs to be serialised improperly. Constructor alternatives were only distinguished by their field types, which led to problems if different constructors had the same field types. The fix is to include the constructor name in the serialised value.