Can we express () i.e Unit type in terms of a Record in Idris ?
Asked
Active
Viewed 62 times
1 Answers
2
You can create a record with no fields.
record Unit where
constructor MkUnit

michaelmesser
- 3,601
- 2
- 19
- 42