From 6be33ec8c7779c04f4e0cc89ca33e5d4f53c1c4e Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 2 Sep 2022 20:24:45 +0300 Subject: [PATCH] lecture 15: fix typo --- part2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)