Open dmjio opened 7 years ago
That's one error I've never seen before. Looks like GADTs only play semi-well with newtype deriving. It might be possible to restructure the Lit
type to fix it...
As of 0.1.8.0, SqlType
instances can be created manually when importing Database.Selda.Backend
. Still no solution deriving instances, however.
I don't believe the current SqlType
API will ever be able to support automatic derivation. If someone comes up with a better one I wouldn't mind merging it, but since instances can now be created manually with relative ease, I think we should let this stay on the backburner for now.
Inference fails when using
GeneralizedNewTypeDeriving
w/SqlType
.StandaloneDeriving
is similar.