blaze-html icon indicating copy to clipboard operation
blaze-html copied to clipboard

Combinator to insert comment would be useful.

Open cliffordbeshers opened this issue 11 years ago • 5 comments

Sometimes browser plugins insert elements into the DOM. I have found it useful to insert markers that show the beginning and ending of my elements. I have been using fake tags, but they cause errors, so I decided to switch to actual comments. Unfortunately, I found no combinator to create them. Is that an oversight?

cliffordbeshers avatar Dec 15 '14 19:12 cliffordbeshers

+1 Couldn't find that either.

Useful for adding copyright or version information.

nd2s avatar Jan 14 '15 19:01 nd2s

The functions

+textComment :: Text -> Markup
+lazyTextComment :: LT.Text -> Markup
+stringComment :: String -> Markup
+unsafeByteStringComment :: ByteString -> Markup
+unsafeLazyByteStringComment :: BL.ByteString -> Markup

are available in blaze-markup-0.6.3.0, which I just uploaded to Hackage. These are re-exported in blaze-html, so you should be able to just use them once you update.

jaspervdj avatar Jan 18 '15 13:01 jaspervdj

Is this still going, @cliffordbeshers?

wisn avatar Mar 30 '18 02:03 wisn

No, I don't even remember the question.

On Thu, Mar 29, 2018 at 7:32 PM, Wisnu Adi Nurcahyo < [email protected]> wrote:

Is this still going, @cliffordbeshers https://github.com/cliffordbeshers ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaspervdj/blaze-html/issues/93#issuecomment-377428604, or mute the thread https://github.com/notifications/unsubscribe-auth/AAySbFZQjjCJe8GMok0SVsefUyfZ3FaYks5tjZkwgaJpZM4DImhr .

cliffordbeshers avatar Mar 30 '18 04:03 cliffordbeshers

Well, it is years ago. You or @jaspervdj may close this so Hakyll issues will be resolved one by one.

wisn avatar Mar 30 '18 06:03 wisn