summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/Module/Location.hs
Commit message (Collapse)AuthorAgeFilesLines
* Rename Package into Unit (2)Sylvain Henry2020-06-131-2/+2
| | | | | | | * rename PackageState into UnitState * rename findWiredInPackages into findWiredInUnits * rename lookupModuleInAll[Packages,Units] * etc.
* Clean up boot vs non-boot disambiguating typesJohn Ericson2020-06-041-4/+5
| | | | | | | | | | | | | | | We often have (ModuleName, Bool) or (Module, Bool) pairs for "extended" module names (without or with a unit id) disambiguating boot and normal modules. We think this is important enough across the compiler that it deserves a new nominal product type. We do this with synnoyms and a functor named with a `Gen` prefix, matching other newly created definitions. It was also requested that we keep custom `IsBoot` / `NotBoot` sum type. So we have it too. This means changing many the many bools to use that instead. Updates `haddock` submodule.
* Unit: split and rename modulesSylvain Henry2020-04-301-0/+78
Introduce GHC.Unit.* hierarchy for everything concerning units, packages and modules. Update Haddock submodule