mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-11 02:01:36 +03:00
3120fcb84a
This is mostly to make it easier to write linear function types without having to invent names for everything, which might be noisy. Also it improves the display of linear function types when the name isn't used in the scope.
32 lines
587 B
Plaintext
32 lines
587 B
Plaintext
1/1: Building qtt (qtt.idr)
|
|
Main> 0 m : Nat
|
|
0 a : Type
|
|
x : a
|
|
0 y : a
|
|
0 ws : Vect k a
|
|
1 zs : Vect (S k) a
|
|
ys : Vect m a
|
|
0 n : Nat
|
|
-------------------------------------
|
|
foo : Vect (S (S (plus k m))) a
|
|
Main> 0 m : Nat
|
|
0 a : Type
|
|
ys : Vect m a
|
|
x : a
|
|
1 zs : Vect k a
|
|
0 xs : Vect (S k) a
|
|
0 n : Nat
|
|
-------------------------------------
|
|
bar : Vect (S (plus k m)) a
|
|
Main> 0 m : Nat
|
|
0 a : Type
|
|
ys : Vect m a
|
|
x : a
|
|
0 zs : Vect k a
|
|
0 xs : Vect (S k) a
|
|
0 n : Nat
|
|
1 ts : Vect k a
|
|
-------------------------------------
|
|
baz : Vect (S (plus k m)) a
|
|
Main> Bye for now!
|