module Void -- making use of 'hd' being partially definedempty1 : Voidempty1 = hd [] where hd : List a -> a hd (x :: xs) = x -- not terminatingempty2 : Voidempty2 = empty2module Void
-- making use of 'hd' being partially defined
empty1 : Void
empty1 = hd [] where
hd : List a -> a
hd (x :: xs) = x
-- not terminating
empty2 : Void
empty2 = empty2