Dynamic Libraries on MacOS X
Wolfgang Thaller
wolfgang.thaller@gmx.net
Tue, 11 Jun 2002 15:04:01 +0200
On Dienstag, Juni 11, 2002, at 09:22 , Ashley Yakeley wrote:
> They solve a similar problem in a quite different way. [...]
> I think Wolfgang means [...]
Exactly.
> [...] add new package specification components, such as
> "frameworks" and "frameworks_dir". They just need to be passed on to the
> linker.
And there's a problem: ghc-pkg uses Read, and that requires all the
fields to be there. It would be a Bad Idea to force everyone to update
every single package.conf file out there. Is there any special reason
why it doesn't use the ParsePkgConf.y parser from compiler/main? (Simon:
Am I allowed to make it do so?)
> One interesting possibility would be to allow support for .hi files in
> frameworks. This would mean GHC would look inside frameworks specified
> by
> the -framework flag and "frameworks" package.conf entries for .hi files,
> in addition to -I and "import_dirs".
I don't see why I would want to add a Haskell-Framework to a
package.conf file... I would definitely like to be able to
drag&drop-install GHC-Packages (it could be done on all platforms, not
only MacOS). It would require loading package.conf files from
framework-style directories - I'll take a look at whether this could be
done easily (and without disturbing the existing system) when I've got
the more important things done.
Wolfgang