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

Add defineBy*File' variant to client that takes a Q FilePath #584

Merged

Conversation

AlistairB
Copy link
Contributor

@AlistairB AlistairB commented Mar 24, 2021

This enables using utilities such as https://hackage.haskell.org/package/file-embed-0.0.13.0/docs/Data-FileEmbed.html#v:makeRelativeToProject
which can be used to work around file path issues when using multi package projects.

Specifically, if I run stack repl subproject which uses defineByDocumentFile it fails as the path is calculated differently via stack repl as compared to when you run the code or run it with tests. This issue also breaks haskell language server, as it relies on stack repl as well.

This changes enables using makeRelativeToProject which will hopefully make everything work. Currently I am just putting this up to test that it does fix it. Indeed this does fix the issue.

This is ready for review.

@AlistairB AlistairB changed the title Add defineBy*File' variant that takes a Q FilePath Add defineBy*File' variant to client that takes a Q FilePath Mar 24, 2021
This enables using utilities such as
https://hackage.haskell.org/package/file-embed-0.0.13.0/docs/Data-FileEmbed.html#v:makeRelativeToProject
which can be used to work around file path issues when using multi
package projects.
@AlistairB
Copy link
Contributor Author

@nalchevanidze I made an attempt. I haven't worked with haddock docs much. Let me know what you think thanks.

@nalchevanidze nalchevanidze merged commit 81b40b5 into morpheusgraphql:master Mar 28, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants