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

Compile time MMark #55

Open
srid opened this issue Jul 22, 2018 · 3 comments
Open

Compile time MMark #55

srid opened this issue Jul 22, 2018 · 3 comments

Comments

@srid
Copy link

srid commented Jul 22, 2018

I'd like to embed my markdown content in the Haskell source in a manner similar to file-embed but (obviously) as MMark documents instead of ByteString.

The primary benefit here is that we fail at compile time if any of the markdown files (in the repository) fails to parse.

Would implementing this feature in this primary repo be within its scope, or is it best done as a separate library? I'm only beginning to get familiar TH, so not yet sure how trivial to implement this would be.

@mrkkrp
Copy link
Member

mrkkrp commented Jul 22, 2018

Yes, I guess this is in scope. I thought of something like this myself, but decided that would be not a very popular use case, but you seem to confirm that it's not so. For inspiration see:

Hope that helps.

@mrkkrp
Copy link
Member

mrkkrp commented Mar 4, 2019

What happened to this use case? Have you discovered that you don't need this or have you implemented this functionality but never opened a PR?

@srid
Copy link
Author

srid commented Mar 5, 2019

@mrkkrp I never implemented it.

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

No branches or pull requests

2 participants