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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Sample data type does not have instances for Eq, Ord and NFData.
Sample
Eq
Ord
NFData
The former two type classes are generally useful can can be automatically derived by GHC.
The latter type class is primarily useful when writing tests and benchmarks. The entire definition of the instance fits on two lines:
instance NFData Sample where rnf (Sample name labelSet value) = rnf name `seq` rnf labelSet `seq` rnf value
The text was updated successfully, but these errors were encountered:
This seems reasonable to me. Did you run into a situation where you needed these instances?
Sorry, something went wrong.
Yes, in particular when I was writing some test-cases:
No branches or pull requests
The
Sample
data type does not have instances forEq
,Ord
andNFData
.The former two type classes are generally useful can can be automatically derived by GHC.
The latter type class is primarily useful when writing tests and benchmarks. The entire definition of the instance fits on two lines:
The text was updated successfully, but these errors were encountered: