@@ -40,10 +40,7 @@ isoSym (MkIso to from toFrom fromTo) = MkIso from to fromTo toFrom
40||| Disjunction is commutative
40||| Disjunction is commutative
41eitherComm : Iso (Either a b) (Either b a)
41eitherComm : Iso (Either a b) (Either b a)
42eitherComm = MkIso swap swap swapSwap swapSwap
42eitherComm = MkIso swap swap swapSwap swapSwap
43− where swap : Either a' b' -> Either b' a' -- a & b are parameters, so fixed!
44− swap (Left x) = Right x
45− swap (Right x) = Left x
46− swapSwap : (e : Either a' b') -> swap (swap e) = e
43+ where swapSwap : (e : Either a' b') -> swap (swap e) = e
47 swapSwap (Left x) = Refl
44 swapSwap (Left x) = Refl
48 swapSwap (Right x) = Refl
45 swapSwap (Right x) = Refl