[Haskell-beginners] How to write the FromJSON instance for CUid

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Thu Aug 9 15:37:51 UTC 2018


Hello, I try to write the instance for the CUid[1] type
But I do not know what to do.

instance FromJSON CUid where
    parseJSON = ...
    {-# INLINE parseJSON #-}

Thansk for your help


[1] https://hackage.haskell.org/package/base-4.11.1.0/docs/System-Posix-Types.html#t:CUid


More information about the Beginners mailing list