diff --git a/introlenses/introlenses.html b/introlenses/introlenses.html index 0882679..5c75ed2 100644 --- a/introlenses/introlenses.html +++ b/introlenses/introlenses.html @@ -593,13 +593,13 @@

How does applicative support multi-focus lenses?

addr_strs :: Traversal' Address String
 addr_strs elt_fn (A r c p)
-  = pure (\r' s' -> A r' c' p) <*> (elt_fn r) <*> (elt_fn c)
+ = pure (\r' c' -> A r' c' p) <*> (elt_fn r) <*> (elt_fn c)
addr_strs :: Traversal' Address String
 addr_strs elt_fn (A r c p)
-  = (\r' s' -> A r' c' p) <$> (elt_fn r) <*> (elt_fn c)
+ = (\r' c' -> A r' c' p) <$> (elt_fn r) <*> (elt_fn c)

Using Traversals

@@ -695,8 +695,8 @@

Unusually for a library, lenses are not abstract

-
newtype Lens' s a = L (forall f. Functor f
-                       => (a -> f a) -> s -> f s)
+
newtype Lens' s a = L ( forall f. Functor f
+                        => (a -> f a) -> s -> f s )