@@ -29,9 +29,9 @@ choose : (b : Bool) -> Either (so b) (so (not b))
2929choose True = Left oh
3030choose False = Right oh
3131
32−either : Either a b -> (a -> c) -> (b -> c) -> c
33−either (Left x) l r = l x
34−either (Right x) l r = r x
32+either : (a -> c) -> (b -> c) -> Either a b -> c
33+either l r (Left x) = l x
34+either l r (Right x) = r x
3535
3636lefts : List (Either a b) -> List a
3737lefts [] = []
@@ -84,4 +84,4 @@ leftInjective refl = refl
8484
8585total rightInjective : {a : Type} -> {x : b} -> {y : b}
8686 -> (Right {a = a} x = Right {a = a} y) -> (x = y)
87−rightInjective refl = refl
87+rightInjective refl = refl