IHaskell.Display: Add explanatory comment to custom

This commit is contained in:
Vaibhav Sagar 2019-11-17 10:35:53 -05:00
parent 28e0175180
commit aee398a82f

View File

@ -117,9 +117,10 @@ vegalite = DisplayData MimeVegalite . T.pack
vdom :: String -> DisplayData
vdom = DisplayData MimeVdom . T.pack
-- | Generate a custom display.
-- | Generate a custom display. The first argument is the mimetype and the second argument is the
-- payload.
custom :: T.Text -> String -> DisplayData
custom mtype = DisplayData (MimeCustom mtype) . T.pack
custom mimetype = DisplayData (MimeCustom mimetype) . T.pack
-- | Generate a Markdown display.
markdown :: String -> DisplayData