Idris2/libs/contrib/Data/Void.idr

10 lines
216 B
Idris
Raw Normal View History

module Data.Void
export
absurdity : Uninhabited t => (0 _ : t) -> s
absurdity x = void (uninhabited x)
export
contradiction : Uninhabited t => (0 _ : x -> t) -> (x -> s)
contradiction since x = absurdity (since x)