mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +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)
|