Idris2/tests/idris2/positivity003/Issue660.idr
Guillaume ALLAIS 7ccc47712e [ re #1087 ] Better error messages in the REPL
(as well as in type signatures now that I know how to do that)
2021-02-19 12:34:19 +00:00

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