Skip to content

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
@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