Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helpers which are specific to the local share server.
Synopsis
- relocateToNameRoot :: Path -> HashQualified Name -> Branch Transaction -> Transaction (Either BackendError (Path, HashQualified Name))
Documentation
relocateToNameRoot :: Path -> HashQualified Name -> Branch Transaction -> Transaction (Either BackendError (Path, HashQualified Name)) Source #
Given an arbitrary query and perspective, find the name root the query belongs in, then return that root and the query relocated to that root.
A name root is either a project root or a dependency root.
E.g. .myproject.some.namespace -> .myproject
or .myproject.lib.base.List -> .myproject.lib.base