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

Need means to propagate haddock-specific command-line options, e.g. "--source-entity-line" #2144

Closed
kostmo opened this issue May 15, 2016 · 4 comments

Comments

@kostmo
Copy link

kostmo commented May 15, 2016

Instead of re-publishing a copy of the syntax-highlighted source code with the documentation, I would like to instead link to the source code as hosted on BitBucket via the --source-entity-line option.

There doesn't appear to be a way to pass in options to haddock from the stack command, in contrast with the mechanism --test-arguments that is able to forward arbitrary options to a test program.

@mgsloan
Copy link
Contributor

mgsloan commented May 15, 2016

Makes sense! Could either be accomplished much like existing options or as part of #652

@kostmo kostmo changed the title Need means propagate haddock-specific command-line options, e.g. "--source-entity-line" Need means to propagate haddock-specific command-line options, e.g. "--source-entity-line" May 15, 2016
@Gabriella439
Copy link

Yes, we've been wanting this, too, so that we could pass through haddock's --qual option

mgsloan added a commit that referenced this issue May 18, 2016
@mgsloan
Copy link
Contributor

mgsloan commented May 18, 2016

@yogsototh just implemented this as a new --haddock-arguments! So this is now available on HEAD

@mgsloan mgsloan closed this as completed May 18, 2016
@Gabriella439
Copy link

Thanks! :)

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

3 participants