Skip to content

New freeze command - #3503

Merged
dcoutts merged 4 commits into
haskell:masterfrom
dcoutts:new-freeze
Jun 25, 2016
Merged

dcoutts merged 4 commits into
haskell:masterfrom
dcoutts:new-freeze

Conversation

@dcoutts

@dcoutts dcoutts commented Jun 20, 2016 •

Copy link
Copy Markdown
Contributor

Adds a new-freeze command, the freeze command to go along with the other new project-based commands.

See also #3502

@dcoutts

dcoutts commented Jun 20, 2016

Copy link
Copy Markdown
Contributor Author

No detail from the appveyor build. No report from travis?

@hvr

hvr commented Jun 20, 2016

Copy link
Copy Markdown
Member

@dcoutts appveyor seems to fail recently for no obvious reason; no travis report is odd though

( normal )

#if !MIN_VERSION_base(4,8,0)
import Data.Monoid (Monoid(mempty))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the only reason for CPP, we can avoid this by referring to mempty at least once qualified...

@23Skidoo

Copy link
Copy Markdown
Member

Passes on both AppVeyor and Travis now.

-> FilePath -> DistDirLayout -> CabalDirLayout
-> ProjectConfig
-> IO ( ElaboratedInstallPlan
, ElaboratedInstallPlan

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to add some comments explaining the return type.

@23Skidoo

Copy link
Copy Markdown
Member

LGTM modulo comments.

@dcoutts

dcoutts commented Jun 25, 2016

Copy link
Copy Markdown
Contributor Author

So I think I'll squash the fixup patches and merge. I've noted some related TODOs in #3104.

@23Skidoo

Copy link
Copy Markdown
Member

Great, let's merge.

dcoutts added 4 commits June 25, 2016 22:53
It takes a solver plan, makes an "elaborated plan" with nix style hashes
but still of mostly source package and then does an improvement phase to
make a plan with pre-existing packages from the store.

Previously it only returned the improved plan, but for some things it's
also useful to see the original elaborated plan with the source
packages. In partciular it will be useful for plan.json status output.
It will also be needed for the freeze command to be able to get at the
flag choices, since this info is not preserved in installed packages.
There are various related properties here like packages that are going
to be built locally inplace rather than added to the store, but
sometimes we need to know if a package was originally specified by the
cabal.project file (explicitly or implicitly).
Code to write it and to pick it up by default when reading the
cabal.project file.
This is ok, but not perfect since freezing is now more tricky with setup
deps. See haskell#3502
@dcoutts
dcoutts merged commit 108d15a into haskell:master Jun 25, 2016
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.

3 participants