Self-constraint generated by 'freeze' #1908

mietek opened this Issue May 29, 2014 · 3 comments


None yet

3 participants

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

$ cabal freeze
Resolving dependencies...

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

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

tibbe commented May 29, 2014

I agree. This is incorrect behavior.


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 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

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