on master help sign in
Fix description of encode

Don't say above, which is incorrect due to the API ordering.

commit5875b31f4a8d22d68c66ea653fd923857b73679d authorDivam <dfordivam@gmail.com> dateTue 13 Aug 2019, 07:38 (7 years ago) parent85e1308
1 file changed+1−1
lib/route/src/Obelisk/Route.hs+1−1
lib/route/src/Obelisk/Route.hs+1−1
@@ -202,7 +202,7 @@ decode e x = runIdentity (tryDecode e x)
202202tryDecode :: Encoder Identity parse decoded encoded -> encoded -> parse decoded
203203tryDecode (Encoder (Identity impl)) x = _encoderImpl_decode impl x
204204
205−-- | Similar to 'decode' above, once an encoder has been checked so that its check monad is Identity, it
205+-- | Similar to 'decode', once an encoder has been checked so that its check monad is Identity, it
206206-- can be used to actually encode by using this. Note that while there's no constraint on the parse monad here,
207207-- one should usually be applying decode and encode to the same 'Encoder'
208208encode :: Encoder Identity parse decoded encoded -> decoded -> encoded