Simplify encoding code slightly more
This commit is contained in:
parent
d62c61224b
commit
f303f6176a
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ sampleByteStrings
|
||||||
-> [(Text, M.MediaType, ByteString)]
|
-> [(Text, M.MediaType, ByteString)]
|
||||||
sampleByteStrings ctypes@Proxy Proxy =
|
sampleByteStrings ctypes@Proxy Proxy =
|
||||||
let samples = toSamples :: [(Text, a)]
|
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
|
in concatMap enc samples
|
||||||
|
|
||||||
-- | The class that helps us automatically get documentation
|
-- | The class that helps us automatically get documentation
|
||||||
|
|
Loading…
Reference in a new issue