Repository navigation
Conversation
e786db9 to
d691693
Compare
|
@andreasabel can you take over shepherd this? |
| -- responsibility when invoked with `--interactive`. On `--info` it | ||
| -- augments the result of `ghc --info` with three additional fields: | ||
| -- | ||
| -- 1. ghc: The path to the `ghc` executable that is used by `doctest`. |
There was a problem hiding this comment.
Please note that even though I describe this in the context of doctest, other tools that make creative use of cabal repl --with-ghc=.. (e.g. hie-bios) could benefit from this as well. All they would need to do is augment --info with the actual path to ghc.
d691693 to
189beec
Compare
doctest finds the correct version of ghc-pkgghc-pkg for cabal repl --with-ghc=doctest
ghc-pkg for cabal repl --with-ghc=doctestghc-pkg for cabal repl --with-ghc=doctest
| progdb4 = Internal.configureToolchain implInfo ghcProg ghcInfoMap progdb3 | ||
| return (comp, compPlatform, progdb4) | ||
|
|
||
| type GhcInfo = Map String String |
There was a problem hiding this comment.
Can this get a haddockumentation?
- What is the purpose?
- What are the keys?
- What are the values?
- Example?
There was a problem hiding this comment.
It's the output of ghc --info
|
@sol: Thanks for this PR! |
This addresses sol/doctest#396. If you still care about this use case, and care enough to put some effort into it, then please go ahead and take over this PR. I acknowledge that other Doctest users could benefit from this too, but I don't have the capacity to finish this up myself.
The code is working as-is. What's left is getting it into a mergable state (eg does this need a change log entry? Bike shedding and what not...). |
|
This is addressed by sol/doctest#396 and will be further alleviated by #10996. Closing. |
This addresses sol/doctest#396
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!