4 ms·
Hopefully hornetblack's answer shed some light, but the most important bit is that the most of the above were just type signatures. If they're part of a typecl
by dllthomas 12y ago
Hopefully hornetblack's answer shed some light, but the most important bit is that the most of the above were just type signatures. If they're part of a typeclass you would define them for a particular type in the instance. Otherwise, you'd define them generically using only other functions defined to generically work with the same constraints (or looser).
So in the case of minBound and maxBound in particular, you'd define them appropriately for a particular type when you declare a type to be Bounded.