mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-18 12:26:08 +00:00
IHaskell.Display: Add explanatory comment to custom
This commit is contained in:
parent
28e0175180
commit
aee398a82f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user