Closed leftaroundabout closed 5 years ago
Void
is not in QuickCheck
as its not in all base
supported by QuickCheck
(i.e. without CPP this patch will fail CI).
Ah. I thought such a simple instance would surely be defined right there in the default package and was just forgotten because it's normally useless, but if it's in the instance package, fine.
For the reference see also https://github.com/nick8325/quickcheck/issues/257
The vacuous type
Void
contains no values. It can thus not have anArbitrary
instance, but it does offer a (trivial)CoArbitrary
. While this is not really useful per se, it can be used to "disable" some parametric field of an alternative type.