Idris2-boot/samples/Void.idr

12 lines
186 B
Idris
Raw Normal View History

2020-02-26 01:18:02 +03:00
module 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