Self-constraint generated by 'freeze' #1908

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

Projects

None yet

3 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
Member
tibbe commented May 29, 2014

I agree. This is incorrect behavior.

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

@mietek mietek referenced this issue in mietek/haskell-on-heroku Jun 13, 2014
Closed

Compilation error deploying a snap app #10

@mietek mietek changed the title from Self-constraint generated by freeze to Self-constraint generated by 'freeze' Jun 26, 2014
@23Skidoo 23Skidoo closed this in #1990 Jul 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment