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 have an ADT defined like this: data MyData = Val1 | Val2
and generically deriving TypescriptType fails with a No Instance error. Do you know if there's a way to do this automatically, or do I have to manually create the TypescriptType instance?
No instance for (Typescript.Internal.Intermediate.Generic.GenericTSUnion (GHC.Generics.M1 GHC.Generics.C ('GHC.Generics.MetaCons "Val1" 'GHC.Generics.PrefixI 'False) GHC.Generics.U1)) arising from a use of ‘Typescript.Internal.Intermediate.Generic.$dmtoTSIntermediate’
The text was updated successfully, but these errors were encountered:
I have an ADT defined like this:
data MyData = Val1 | Val2
and generically deriving
TypescriptType
fails with aNo Instance
error. Do you know if there's a way to do this automatically, or do I have to manually create theTypescriptType
instance?No instance for (Typescript.Internal.Intermediate.Generic.GenericTSUnion (GHC.Generics.M1 GHC.Generics.C ('GHC.Generics.MetaCons "Val1" 'GHC.Generics.PrefixI 'False) GHC.Generics.U1)) arising from a use of ‘Typescript.Internal.Intermediate.Generic.$dmtoTSIntermediate’
The text was updated successfully, but these errors were encountered: