Given a simple record type which auto derives Atomable and Tupleable, if it contains an Either type field, toDefineExpr returns an invalid expression:
data TestType = TestType { eTextInt :: Either Text Int }
deriving (Generic, Show, Eq, NFData, Atomable, Tupleable)
deriving W.Serialise via W.WineryVariant TestType
Given a simple record type which auto derives
Atomable
andTupleable
, if it contains anEither
type field,toDefineExpr
returns an invalid expression:In ghci:
What is expected: