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
In order to reify custom-setup components in the target selector syntax, we'd have to introduce a new (singleton) namespace "setup", which has onlyat most a single inhabitant (hence a singleton -- however, this inhabitant only exists for build-type:custom packages), also named "setup". Consequently, this gives us the following ways to refer to the custom setup script for a package foo
Currently, we cannot refer to
custom-setup
componentsSee
Distribution.Client.TargetSelector
for currently supported syntax.In order to reify custom-setup components in the target selector syntax, we'd have to introduce a new (singleton) namespace "
setup
", which hasonlyat most a single inhabitant (hence a singleton -- however, this inhabitant only exists forbuild-type:custom
packages), also named "setup
". Consequently, this gives us the following ways to refer to the custom setup script for a package foofoo:setup
(package-name : component-name)setup
(component-name)setup:setup
(namespace-name : component-name)foo:setup:setup
(package-name : namespace-name : component-name ):pkg:foo:setup:setup
(explicitly qualified package-name : namespace-name : component-name )(Optional) Moreover, we could add the "filter"
setups
, which then gives us the ability to refer to custom-setups components of multiple packages viasetups
all:setups
:all:setups
foo:setups
(trivial: allsetup
components in the packagefoo
; IOW, same asfoo:setup:setup
)This may be a pre-requisite for #4293 which needs the ability to
cabal new-build setup(s)
w/o building all remaining targets.The text was updated successfully, but these errors were encountered: