[Haskell-beginners] How to write the FromJSON instance for CUid
David McBride
toad3k at gmail.com
Fri Aug 10 12:55:09 UTC 2018
I'm not sure if the maintainers would accept it.
You should keep in mind that these posix types are not necessarily the same
system to system as the word sizes are dependent on the architecture of the
machine involved, thus different machines would have to generate different
instances. If that is the case, it is probably fine to just live with
orphan instances.
But it would be pretty easy to ask them.
On Fri, Aug 10, 2018 at 7:43 AM, PICCA Frederic-Emmanuel <
frederic-emmanuel.picca at synchrotron-soleil.fr> wrote:
> > Didn't even occur to me that there would already be a Word32 instance.
> Looking at the source, it absolutely deals with every case automatically.
>
> Great,
>
> now the real question ;)
>
> I use Generic with aeson and I endup like plenty of other with these
> orphan instances definietion.
>
> what is the right way to deal with this.
>
> fill a bug against all these types and request instances for these
> typeclass.
>
> or ?
>
>
> Cheers
>
> Fred
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180810/6c48016a/attachment.html>
More information about the Beginners
mailing list