diff --git a/src/Servant/Docs.hs b/src/Servant/Docs.hs index 2e32001f..d49ce877 100644 --- a/src/Servant/Docs.hs +++ b/src/Servant/Docs.hs @@ -462,7 +462,7 @@ sampleByteStrings -> [(Text, M.MediaType, ByteString)] sampleByteStrings ctypes@Proxy Proxy = let samples = toSamples :: [(Text, a)] - enc (t, s) = (\(m,b) -> (t,m,b)) <$> amr ctypes s + enc (t, s) = uncurry (t,,) <$> amr ctypes s in concatMap enc samples -- | The class that helps us automatically get documentation