-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interpreter doc: Remove an incorrect statement
- Loading branch information
1 parent
3bd643b
commit d412c37
Showing
1 changed file
with
0 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
-hide-all-packages
seems to work again. Can this commit be reverted?d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was working even when I remove this statement :-) The point is that the script will not be "independent of any configuration" even with
-hide-all-packages
. It still depends on the global project config or the project config. For example if you change a package version (by adding an extra-dep) in the config it will affect the script.d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok.
But
-hide-all-packages
still guarantees that no packages were omitted, right? I think that would still be a useful safeguard and should be documented.(I can add a note to that effect)
d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is explained in
writing independent and reliable scripts
section somewhere down below.d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah great, it's here. (I forgot to look at the "latest" docs on haskellstack.org)
This doesn't seem quite right then as the resolver versions may still be overridden by extra-deps.
d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that a bit odd that
--resolver
on command line will change the whole set of packages but still add the same extra-deps, which might make things terribly broken. Shouldn't it override everything?So we will need something like
--no-config --resolver
then to make this statement true? And if this is true then what I removed will also be true, huh.d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm more in favor of changing the behavior of
--resolver
so it overrides extra-deps. I have opened #2238 for this a while ago. Let's discuss this further there.d412c37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine. If the packages are incompatible, it will tell you about it. It's weird but useful.