You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We frequently have to work on multiple dependent packages at once and thus we also need a way to build them together, without registering the by-products in some shared package database. For example, given this directory structure
where foo is a package that depends on bar, I should be able to do
cd src
cabal build foo
and that better traverse the directory structure, find, and build dependencies and use them when compiling foo.
Aside: This could be implemented in a few different, more or less explicit, ways e.g. by specifying the directories used to search for dependencies explicitly, as in
Whatever rule we use, it has to be clear at all times what package environment we are in. In the above example the obvious thing is to make a package env at the src level and declare that all the subdirs are in that env, so cd'ing around there doesn't change your env. And of course behind the scenes these things do have to be registered in some shared package db -- the one for this env.
Activity
dcoutts commentedon Oct 17, 2013
Whatever rule we use, it has to be clear at all times what package environment we are in. In the above example the obvious thing is to make a package env at the src level and declare that all the subdirs are in that env, so cd'ing around there doesn't change your env. And of course behind the scenes these things do have to be registered in some shared package db -- the one for this env.
tibbe commentedon Nov 11, 2013
See #1576 for some more description of the task.
23Skidoo commentedon Dec 13, 2014
See also #921.
ezyang commentedon May 5, 2016
This is solved by
cabal.projectfiles.