[GHC] #9808: Add data-dir to InstalledPackageInfo
GHC
ghc-devs at haskell.org
Mon Nov 17 22:57:32 UTC 2014
#9808: Add data-dir to InstalledPackageInfo
-------------------------------------+-------------------------------------
Reporter: luite | Owner: luite
Type: task | Status: new
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.8.3
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Unknown | Type of failure:
Blocked By: | None/Unknown
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Currently, the data directory of a package is not stored in the package
database. This is fine for programs produced by GHC, where programs know
the location of their own data files through the `Paths_packagename`
module, but it's not sufficient for programs that do not have direct
access to the local filesystem.
Programs produced by GHCJS should be able to load their data files over
HTTP. If GHCJS would know the `data-dir` location of all packages, it
could make the data files for all dependencies available when linking, and
generate a `FilePath -> URI` mapping table. The best it can currently do
is making all files on the hard drive available.
I have a patch for this that I'll submit once I've figured out how
Phabricator works ;)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9808>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list