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

Break up runStan function and expose it and its components #552

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

0rphee
Copy link
Contributor

@0rphee 0rphee commented Dec 22, 2023

This is no much more than anything a separation of functions, so that stan functionality can be better added to the hls-stan-plugin (haskell/haskell-language-server#3914).

getStanConfig is the only essential one for the plugin. I factored-out the second getAnalysis to use it as-is for hls. However, that is not possible because all the internal machinery in stan works with only relative paths, while the plugin at the end requires an absolute path. I'm inclined to leave it as is, but if it were possible to change stan internals to get one version of the function with both the plugin and stan itself, that would be nicer.

This also exports runStan, but it would be no problem leaving it there.

@0rphee 0rphee changed the title Break up runStan function and expose it and its components (#551) Break up runStan function and expose it and its components #551 Dec 22, 2023
@0rphee 0rphee changed the title Break up runStan function and expose it and its components #551 Break up runStan function and expose it and its components Dec 22, 2023
@tomjaguarpaw tomjaguarpaw merged commit bd88704 into kowainik:main Dec 22, 2023
39 checks passed
@tomjaguarpaw
Copy link
Collaborator

Nice, thank you!

@tomjaguarpaw
Copy link
Collaborator

Released to Hackage as https://hackage.haskell.org/package/stan-0.1.2.0

@tomjaguarpaw tomjaguarpaw mentioned this pull request Dec 22, 2023
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.

2 participants