on master help sign in
route: Typo
commit7b34aea6a3bbac4228814312c0574b06d79920fd authorElliot Cameron <eacameron@gmail.com> dateTue 28 Apr 2020, 18:05 (6 years ago) parent929ed82
1 file changed+1−1
lib/route/src/Obelisk/Route.hs+1−1
lib/route/src/Obelisk/Route.hs+1−1
@@ -836,7 +836,7 @@ _R variant = dSumGEqPrism variant . iso runIdentity Identity
836836-- just like 'review' produces a function @b -> a@. This is because 'Prism's extract values, in a way that might
837837-- fail, in their forward direction and inject values, in a way that cannot fail, in their reverse direction;
838838-- whereas 'Encoder's encode, which cannot fail, in their forward direction, and decode, which can fail, in their
839−-- reverse direction. In short @reviewEncoder (f . g) = prismEncoder g . reviewEncoder f@.
839+-- reverse direction. In short @reviewEncoder (f . g) = reviewEncoder g . reviewEncoder f@.
840840reviewEncoder :: (Applicative check, MonadError Text parse) => Prism' b a -> Encoder check parse a b
841841reviewEncoder p = unsafeMkEncoder $ EncoderImpl
842842 { _encoderImpl_encode = review p