mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
add tests to chaining and combing operators
This commit is contained in:
parent
6ce4ec2ebf
commit
1adb780e3f
@ -3,13 +3,20 @@
|
||||
import Data.Vect
|
||||
|
||||
typebind infixr 0 =@
|
||||
infixr 0 -@
|
||||
|
||||
0 (=@) : (a : Type) -> (a -> Type) -> Type
|
||||
(=@) a f = (1 x : a) -> f x
|
||||
|
||||
(-@) : (a, b : Type) -> Type
|
||||
(-@) a b = (1 _ : a) -> b
|
||||
|
||||
data S : {ty : Type} -> (x : ty) -> Type where
|
||||
MkS : (x : ty) =@ S x
|
||||
Mk2 : (x : ty) =@ (y : ty) =@ S (x, y)
|
||||
Mk3 : (x : ty) =@ ty -@ S x
|
||||
Mk4 : ty -@ (x : ty) =@ S x
|
||||
-- Chain : (x : ty =@ y : ty =@ S (x, y))
|
||||
|
||||
typebind infixr 0 *>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user