Comments (4)
(Imported comment by @dcoutts on 2006-01-09)
We install the InstalledPackageInfo with each package (I didn't know that, but apparently we do). So in theory all we need to do is read those files back in and we have a package database.
Of course it would be better if hugs came with the package registration files for all the core packages.
from cabal.
(Imported comment by @dcoutts on 2008-01-17)
So I'm happy with the idea that for hugs and nhc that we do not need a distinct concept of a package database. The package database can coincide with the location where packages are installed, and hugs/nhc just look in that dir for their packages. Cabal would also look there for the InstalledPackageInfo files. So the package db and the libdir are really the same thing.
Hugs already looks in ~/lib/hugs/* for package directories.
So for hugs there are two things to do:
- make Cabal and hugs agree on where the per-user install path for package should be. Currently cabal-install puts them in ~/.cabal/lib/hugs/* (or something like that).
- get the next release of hugs to include the InstalledPackageInfo files for all the packages that it comes with. This will enable cabal to know what packages are installed by reading these files, just as it does with ghc by asking ghc-pkg for the equivalent info.
from cabal.
(Imported comment by @dcoutts on 2008-08-15)
This isn't tht hard but needs changes in Hugs and a bit in Cabal and then testing and a new hugs release. The scheme with installed package info files should work for hugs, nhc and lhc. On the Cabal side of things the same implementation can be used for each.
from cabal.
Closing as there's been no activity in years.
We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.
from cabal.
Related Issues (20)
- Distribution.ModuleName.fromComponents marked as deprecated but gives no alternatives HOT 2
- cabal v2-repl broken with head HOT 11
- `withSourceCopy` is not very hermetic HOT 1
- Does LIBRARY_PATH and C_INCLUDE_PATH still work? HOT 3
- [Windows] Document use and integration of MSYS2 HOT 3
- ´cabal list-bin` should not require a target when there is an obvious default.
- master: cabal install from hackage broken? HOT 1
- How can we enable-tests for single target component in runhaskell Setup.hs build HOT 1
- Cabal sdist concatenates names of conditional Main module names HOT 8
- Copy `.hie` test fails with ghc-9.8.1 HOT 8
- `cabal user-config diff` returns garbage on windows
- Release checklist for GHC 9.10 HOT 1
- Persistence mechanism in testsuite is fragile
- ConfigFile/T8487/cabal.test.hs is fragile to changing compiler HOT 1
- cabal list-bin can already list multiple binary but just refuses to HOT 9
- Support `build-depends:` injection from `cabal.project` HOT 1
- Don't show the "Unknown/unsupported 'ghc' version detected" warning at default verbosity HOT 2
- Support GHC2024
- Question about: `store-dir`, `package-dbs`, and simulate sandbox HOT 4
- testsuite: skipifVersion "9.6.3" in VersionPriority tests looks overfitted HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cabal.