Idris2/tests/idris2/import009/Prefix.idr

13 lines
150 B
Idris
Raw Normal View History

2023-07-31 10:35:16 +03:00
module Prefix
private
prefix 5 !!
export
(!!) : Type -> Type
(!!) = Not
export
test : Either (!! a) (!! b) -> !! (a, b)
test f (x, y) = f (Left x)