@@ -9,7 +9,7 @@ module Either where
99@docs either, isLeft, isRight
1010
1111# Eithers and Lists
12−@docs lefts, rights, partition, consLeft, consRight, consEither
12+@docs lefts, rights, partition
1313
1414-}
1515
@@ -25,7 +25,7 @@ error messages are stored on the left, and the correct values
2525data Either a b = Left a | Right b
2626
2727{-| Apply the first function to a `Left` and the second function to a `Right`.
28− This allows the extraction of a value from an `Either`.
28+This allows the extraction of a value from an `Either`.
2929-}
3030either : (a -> c) -> (b -> c) -> Either a b -> c
3131either f g e = case e of { Left x -> f x ; Right y -> g y }
@@ -47,13 +47,13 @@ rights : [Either a b] -> [b]
4747rights es = List.foldr consRight [] es
4848
4949{-| Split into two lists, lefts on the left and rights on the right. So we
50− have the equivalence: `(partition es == (lefts es, rights es))`
50+have the equivalence: `(partition es == (lefts es, rights es))`
5151-}
5252partition : [Either a b] -> ([a],[b])
5353partition es = List.foldr consEither ([],[]) es
5454
5555{-| If `Left`, add the value to the front of the list.
56− If `Right`, return the list unchanged
56+If `Right`, return the list unchanged
5757-}
5858consLeft : Either a b -> [a] -> [a]
5959consLeft e vs =
@@ -62,7 +62,7 @@ consLeft e vs =
6262 Right _ -> vs
6363
6464{-| If `Right`, add the value to the front of the list.
65− If `Left`, return the list unchanged.
65+If `Left`, return the list unchanged.
6666-}
6767consRight : Either a b -> [b] -> [b]
6868consRight e vs =
@@ -71,7 +71,7 @@ consRight e vs =
7171 Right v -> v::vs
7272
7373{-| If `Left`, add the value to the left list.
74− If `Right`, add the value to the right list.
74+If `Right`, add the value to the right list.
7575-}
7676consEither : Either a b -> ([a], [b]) -> ([a], [b])
7777consEither e (ls,rs) =