
10 Aug
2018
10 Aug
'18
7:40 a.m.
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. On Fri, Aug 10, 2018 at 4:05 AM, PICCA Frederic-Emmanuel < frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:
Hello, and thanks for the reply
What about this
instance FromJSON CGid where parseJSON x = CGid <$> (parseJSON x :: Parser Word32) {-# INLINE parseJSON #-}
Do you think that it deal with all the problem you are trying to prevent ?
Cheers
Fred _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners