Skip to content

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 AlistairB force-pushed the client-allow-qfilepath branch from aca6876 to a7d73f2 Compare March 28, 2021 01:22
@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

2 participants