mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 06:13:26 +03:00
4f10bfcfd2
This is referred to in the documentation, so should be there
12 lines
186 B
Idris
12 lines
186 B
Idris
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
|