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
I get an error about not being able to find the generic instance that was used in the first example:
No type class instance was found for
Foreign.Generic.Class.Encode WrappedInt
while applying a function genericEncodeJSON
of type Generic t0 t1 => GenericEncode t1 => { fieldTransform :: String -> String
, sumEncoding :: SumEncoding
, unwrapSingleArguments :: Boolean
, unwrapSingleConstructors :: Boolean
}
-> t0 -> String
to argument opts
while inferring the type of genericEncodeJSON opts
in value declaration main
What am I doing wrong here?
The text was updated successfully, but these errors were encountered:
I have these data structures:
If I do
I corretcly get a
8
but If I doI get an error about not being able to find the generic instance that was used in the first example:
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: