mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 17:21:59 +03:00
13 lines
150 B
Idris
13 lines
150 B
Idris
|
module Prefix
|
||
|
|
||
|
private
|
||
|
prefix 5 !!
|
||
|
|
||
|
export
|
||
|
(!!) : Type -> Type
|
||
|
(!!) = Not
|
||
|
|
||
|
export
|
||
|
test : Either (!! a) (!! b) -> !! (a, b)
|
||
|
test f (x, y) = f (Left x)
|