Module Unprime
Pervasives.
include module type of Prime
The Empty Type
type counit
A type which is uninhabited by well-founded code. This is equivalent to a variant type with no constructors, though syntax forbids naming or defining such types.
val absurd : counit -> 'a
Computations in the scope of a variable
x : counit
can be assumed dead, and thus be shortcut asabsurd x
. This is the analogue of pattern-matching a variant with no constructors.