Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combinator to insert comment would be useful. #93

Open
cliffordbeshers opened this issue Dec 15, 2014 · 5 comments
Open

Combinator to insert comment would be useful. #93

cliffordbeshers opened this issue Dec 15, 2014 · 5 comments

Comments

@cliffordbeshers
Copy link

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?

@nd2s
Copy link

nd2s commented Jan 14, 2015

+1
Couldn't find that either.

Useful for adding copyright or version information.

@jaspervdj
Copy link
Owner

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.

@wisn
Copy link

wisn commented Mar 30, 2018

Is this still going, @cliffordbeshers?

@cliffordbeshers
Copy link
Author

cliffordbeshers commented Mar 30, 2018 via email

@wisn
Copy link

wisn commented Mar 30, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants