1

Can we express () i.e Unit type in terms of a Record in Idris ?

Rocky
  • 13
  • 2

1 Answers1

2

You can create a record with no fields.

record Unit where
    constructor MkUnit
michaelmesser
  • 3,601
  • 2
  • 19
  • 42