New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-constraint generated by 'freeze' #1908

Closed
mietek opened this Issue May 29, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@mietek
Contributor

mietek commented May 29, 2014

Is a Haskell application its own dependency? cabal freeze appears to think so:

$ cat > self.cabal << EOF
name:           self
version:        0.0
build-type:     Simple
cabal-version:  >=1.2

executable self
  build-depends: base
EOF

$ cabal freeze
Resolving dependencies...

$ cat cabal.config 
constraints: base ==4.7.0.0,
             ghc-prim ==0.3.1.0,
             integer-gmp ==0.5.1.0,
             rts ==1.0,
             self ==0.0

I would argue this is incorrect behaviour. Does anyone think otherwise?

@tibbe

This comment has been minimized.

Show comment
Hide comment
@tibbe

tibbe May 29, 2014

Member

I agree. This is incorrect behavior.

Member

tibbe commented May 29, 2014

I agree. This is incorrect behavior.

@benarmston

This comment has been minimized.

Show comment
Hide comment
@benarmston

benarmston May 29, 2014

Contributor

I agree too. I've put this on my list of issues to look at too. Thanks for the report and the test case.

Contributor

benarmston commented May 29, 2014

I agree too. I've put this on my list of issues to look at too. Thanks for the report and the test case.

@mietek

This comment has been minimized.

Show comment
Hide comment
@mietek

mietek Jun 2, 2014

Contributor

@benarmston: You're welcome. I now see you've considered this issue earlier. Please don't omit the base dependency, though.

Halcyon includes a workaround for this issue.

Contributor

mietek commented Jun 2, 2014

@benarmston: You're welcome. I now see you've considered this issue earlier. Please don't omit the base dependency, though.

Halcyon includes a workaround for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment