Skip to content

cabal should detect when a new version of a library is installed #102

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

Closed
bos opened this issue May 24, 2012 · 2 comments
Closed

cabal should detect when a new version of a library is installed #102

bos opened this issue May 24, 2012 · 2 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #110, reported by guest on 2007-02-15)

I have a program A that uses library B.

For A i type:

runhaskell Setup.hs configure
runhaskell Setup.hs build
The binaries are created. However, A uses B and when i then change the library B:
echo "improved code" >> Main.hs
runhaskell Setup.hs configure
runhaskell Setup.hs build
runhaskell Setup.hs install
The library is installed fine, but recompiling A does not work, because Cabal only seems to stat

the executable, and does not check, whether a library that the program depends on, maybe has a newer timestamp.

So one always has to runhaskell Setup.hs clean the workspace if not sure if something in the libs changed (in a script ...)

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-02-15)

Currently recompilation checking is deferred to ghc and it does not check packages at the moment. See http://hackage.haskell.org/trac/ghc/ticket/1372

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-09-12)

For ghc this is now done by ghc --make itself (I think since 6.8 or 6.10).

The more general problem is the same as always, the lack of a proper dep system #15.

@bos bos closed this as completed May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant