We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
It would be great if you exported a datatype along the lines of
newtype Pickle t = Pickle t deriving newtype Generic instance (Generic t, GXmlPickler (Rep t), ConNames (Rep t)) => XmlPickler (Pickle t) where xpickle = gxpickle
Then users could use deriving via to derive instances, with even less boilerplate. e.g:
deriving via
data User = User { name :: String , admin :: Bool } deriving (Show, Generic) deriving XmlPickler via Pickle User
I may submit a PR for this if I can convince myself it's a safe use of UndecidableInstances.
UndecidableInstances
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be great if you exported a datatype along the lines of
Then users could use
deriving via
to derive instances, with even less boilerplate. e.g:I may submit a PR for this if I can convince myself it's a safe use of
UndecidableInstances
.The text was updated successfully, but these errors were encountered: