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
getting error while trying to create ToJSON instance for type Exp. using aeson 1.4.7.1
import qualified Data.Aeson.TH as AesonTH
import Data.Functor.Identity as DF
data ExpT f =
ExpT
{
name :: f Text,
age :: f Int
} deriving (Generic)
type Exp = ExpT DF.Identity
deriving instance Eq Exp
$(AesonTH.deriveToJSON AesonTH.defaultOptions ''ExpT)
getting error normalizeDecFor: DataD or NewtypeD required
The text was updated successfully, but these errors were encountered:
adiR28
changed the title
Getting issue while creating to create ToJSON instance of in aeson-1.4.7.1
Getting issue while creating to create ToJSON instance using aeson template in aeson-1.4.7.1Oct 5, 2023
getting error while trying to create ToJSON instance for type Exp. using aeson 1.4.7.1
getting error
normalizeDecFor: DataD or NewtypeD required
The text was updated successfully, but these errors were encountered: