on master help sign in
Simplify encoding code slightly more
commitf303f6176a4648f8803c4e4145f186cf50e100df authorThomas Sutton <me@thomas-sutton.id.au> dateThu 19 Feb 2015, 13:19 (12 years ago) parentd62c612
1 file changed+1−1
src/Servant/Docs.hs+1−1
src/Servant/Docs.hs+1−1
@@ -462,7 +462,7 @@ sampleByteStrings
462462 -> [(Text, M.MediaType, ByteString)]
463463sampleByteStrings ctypes@Proxy Proxy =
464464 let samples = toSamples :: [(Text, a)]
465− enc (t, s) = (\(m,b) -> (t,m,b)) <$> amr ctypes s
465+ enc (t, s) = uncurry (t,,) <$> amr ctypes s
466466 in concatMap enc samples
467467
468468-- | The class that helps us automatically get documentation