diff --git a/part2.html b/part2.html index 0ec94e2..d07b978 100644 --- a/part2.html +++ b/part2.html @@ -4218,7 +4218,7 @@ liftA2 sumMoney (parseMoney "123" "e") (parseMoney "xxx

15.7 Dealing with Failure: Alternative

-

If you play around with applicatives a bit you’ll start to notice some limits to their power. For example, when writing parsers like we did in the parseMoney example, it would be nice to be able to try some a couple of different parsers and take any non-failure result. This is easy enough to write for a concrete Applicative like Maybe, as can be seen below.

+

If you play around with applicatives a bit you’ll start to notice some limits to their power. For example, when writing parsers like we did in the parseMoney example, it would be nice to be able to try a couple of different parsers and take any non-failure result. This is easy enough to write for a concrete Applicative like Maybe, as can be seen below.

data Answer = Yes | No
   deriving (Show, Eq)