Return the JSON-encoded error type instead of double-encoding it in a string in the standalone case. This lets the user specify errorType, errorMessage etc. as per the "standard AWS Lambda error format".
This also has the effect of using the potentially-faster toEncoding Aeson method if a user's type implements it.
Return the JSON-encoded error type instead of double-encoding it in a string in the standalone case. This lets the user specify
errorType
,errorMessage
etc. as per the "standard AWS Lambda error format".This also has the effect of using the potentially-faster
toEncoding
Aeson method if a user's type implements it.