Open alexandervandenbroucke opened 3 years ago
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
This seems reasonable to me. Did you run into a situation where you needed these instances?
Yes, in particular when I was writing some test-cases:
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: