Documentation ¶
Overview ¶
Functions used for dependency resolution
An extension for gazelle to generate haskell_module rules from haskell rules
Index ¶
Constants ¶
View Source
const BOOT_EXTENSION = ".hs-boot"
View Source
const HIMPORTSCAN_PATH = "himportscan/himportscan"
View Source
const PRIVATE_ATTR_DEP_LABELS = "dep_labels"
View Source
const PRIVATE_ATTR_IS_BOOT = "is_source_importation"
View Source
const PRIVATE_ATTR_MODULE_LABELS = "module_labels"
View Source
const PRIVATE_ATTR_MODULE_NAME = "module_name"
View Source
const PRIVATE_ATTR_ORIGINATING_RULE = "originating_rule"
View Source
const PRIVATE_FIND_MODULES_DIRECTIVE = "gazelle_haskell_modules:srcs:"
Variables ¶
View Source
var PRIVATE_STRIP_FIND_MODULES_DIRECTIVE = regexp.MustCompile(fmt.Sprintf(`#\s*%s(.*)`, PRIVATE_FIND_MODULES_DIRECTIVE))
Functions ¶
func NewLanguage ¶
Types ¶
type HModuleImportData ¶
type HModuleImportData struct { ImportedModules []ModuleImport UsesTH bool }
type HRuleImportData ¶
type ModuleData ¶
type ModuleData struct { ModuleName string FilePath string ImportedModules []ModuleImport UsesTH bool IsBoot bool }
type ModuleImport ¶
type RuleInfo ¶
type RuleInfo struct { OriginatingRules []*rule.Rule ModuleData *ModuleData }
Click to show internal directories.
Click to hide internal directories.