module Distribution.Types.ComponentInclude (
ComponentInclude(..),
ci_id,
ci_pkgid,
ci_cname
) where
import Distribution.Types.PackageId
import Distribution.Types.ComponentName
import Distribution.Types.AnnotatedId
data ComponentInclude id rn = ComponentInclude {
ci_ann_id :: AnnotatedId id,
ci_renaming :: rn,
ci_implicit :: Bool
}
ci_id :: ComponentInclude id rn -> id
ci_id = ann_id . ci_ann_id
ci_pkgid :: ComponentInclude id rn -> PackageId
ci_pkgid = ann_pid . ci_ann_id
ci_cname :: ComponentInclude id rn -> ComponentName
ci_cname = ann_cname . ci_ann_id