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
fails with "No instance FromHttpApiData B arising from..." because of this instance her:
instance {-# OVERLAPPABLE #-} (Selectors, FromHttpApiDatac) =>GFromFormt (M1Ss (K1ic)) where
gFromForm _ opts form =M1.K1<$> parseUnique key form
where
key =Text.pack $ fieldLabelModifier opts $ selName (Proxy3::Proxy3sgp)
This is quite unfortunate because I would like to somehow indicate that this should be derived recursively somehow; perhaps we can indicate this somehow by using a newtype wrapper in A's recursive field and then deriving everything newtype for it and then add an {-# OVERLAPPING #-} instance to the generic deriving? Though that would be quite the mess. I wonder what is a good way to do this.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, I wonder whether there is some preferred, idiomatic way to deal with things like
fails with
"No instance FromHttpApiData B arising from..."
because of this instance her:This is quite unfortunate because I would like to somehow indicate that this should be derived recursively somehow; perhaps we can indicate this somehow by using a newtype wrapper in
A
's recursive field and then deriving everything newtype for it and then add an{-# OVERLAPPING #-}
instance to the generic deriving? Though that would be quite the mess. I wonder what is a good way to do this.Thanks in advance.
The text was updated successfully, but these errors were encountered: