on master help sign in
Merge pull request #497 from obsidiansystems/dfordivam-patch-1

Fix description of encode

commitc8d21281bb00cba8ab6de528069fd82770dda02a authorAli Abrar <aliabrar@gmail.com> dateWed 14 Aug 2019, 16:47 (7 years ago) parent85e13085875b31
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