Skip to content
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 · Fixed by #1990
Closed

Self-constraint generated by 'freeze' #1908

mietek opened this issue May 29, 2014 · 3 comments · Fixed by #1990

Comments

@mietek
Copy link
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
Copy link
Member

tibbe commented May 29, 2014

I agree. This is incorrect behavior.

@benarmston
Copy link
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.

@mietek
Copy link
Contributor Author

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants