Closed ddssff closed 3 years ago
I suppose this will leak implementation details...
λ> fmap gshow (fromString "ed41b3df-e0e3-4b95-bcf7-6630691639b7")
Just "(ed41b3df-e0e3-4b95-bcf7-6630691639b7 (17096143434607184789) (13616464356485511607))"
As Data
instance is manually written, as far as we keep the "fake constructor" stable, it's fine to have it. However what representation we should expose? Related to https://github.com/haskell-hvr/uuid/issues/33, they should be the same.
I will consider this and get back to you in 2024. :-)
I ran into a situation where a problem I was diagnosing was masked by this call to error "gunfold". This seems like a harmless enhancement to the instance, unless I'm mistaken. These definitions are adapted from those generated by DeriveDataTypeable.