mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +03:00
7ccc47712e
(as well as in type signatures now that I know how to do that)
15 lines
295 B
Idris
15 lines
295 B
Idris
module Main
|
|
|
|
%default total
|
|
|
|
%logging "declare.data.parameters" 20
|
|
%logging "eval.eta" 10
|
|
|
|
|
|
-- explicit
|
|
data Value : (value : Nat -> Type) -> Type where
|
|
EmptyV : {0 value : Nat -> Type} -> Value (\ n => value n)
|
|
|
|
data TValue : Nat -> Type where
|
|
MkTupleV : Value (\n => TValue n) -> TValue n
|