Add more queries to stack query#3761
Conversation
|
Hi, sorry for letting this languish! It seems good to have this information, thanks for adding it Not sure about the names, just because we're not going to want to change them in the future. But I can't think of better ones, so going ahead to merge. |
|
Hmm, why is |
|
I was working on |
|
Hmm, do you need this information before installing ghc? If not, then using |
|
Ideally, yes. (I’m not sure now why I rejected the idea of installing the raw compiler and querying its database, I’ll have to thing about it again.) |
|
Yeah, that's why these are "hints". It will let you use whatever global packages that come with the compiler. I actually don't remember what they are used for. |
|
They're only used as a hack because we want to guess which snapshot to use, and not require the user to install 3 GHCs to do that guessing. Wherever possible, you should use the actual global database from GHC, which will handle cases like different OSes and prerelease/custom compilers properly. |
While looking into input-output-hk/stack2nix#84 I added a couple of queries to
stack query, so I thought I’d share them in case someone finds them useful.The change is pretty trivial, but if I had access to a Windows machine, I would make sure it still compiles on Windows, just in case.