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
Packages that define orphan instances don't always need all their dependencies to be built. For example, suppose package compat depends on package plain and just defines instances that appear in new versions of plain. It may be that all the uses of plain (module imports and plugins) in compat are guarded by #if !MIN_VERSION_plain(2,12,3). In this case, it should be possible to build compat without actually building plain and its transitive dependencies, although it's necessary to solve for them. We don't, as far as I know, have a way to express that in Cabal. Could such functionality be added?
The text was updated successfully, but these errors were encountered:
I don't think this is a useful feature worth pursuing. Seems like it adds a lot of overhead to how we think about solving, with very little meaningful gain.
Packages that define orphan instances don't always need all their dependencies to be built. For example, suppose package
compat
depends on packageplain
and just defines instances that appear in new versions ofplain
. It may be that all the uses ofplain
(module imports and plugins) incompat
are guarded by#if !MIN_VERSION_plain(2,12,3)
. In this case, it should be possible to buildcompat
without actually buildingplain
and its transitive dependencies, although it's necessary to solve for them. We don't, as far as I know, have a way to express that in Cabal. Could such functionality be added?The text was updated successfully, but these errors were encountered: