@@ -29,9 +29,9 @@ choose : (b : Bool) -> Either (so b) (so (not b))
29choose True = Left oh
29choose True = Left oh
30choose False = Right oh
30choose False = Right oh
32−either : Either a b -> (a -> c) -> (b -> c) -> c
32+either : (a -> c) -> (b -> c) -> Either a b -> c
33−either (Left x) l r = l x
33+either l r (Left x) = l x
34−either (Right x) l r = r x
34+either l r (Right x) = r x
36lefts : List (Either a b) -> List a
36lefts : List (Either a b) -> List a
37lefts [] = []
37lefts [] = []
@@ -84,4 +84,4 @@ leftInjective refl = refl
85total rightInjective : {a : Type} -> {x : b} -> {y : b}
85total rightInjective : {a : Type} -> {x : b} -> {y : b}
86 -> (Right {a = a} x = Right {a = a} y) -> (x = y)
86 -> (Right {a = a} x = Right {a = a} y) -> (x = y)
87−rightInjective refl = refl
87+rightInjective refl = refl