Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Unison.Server.Local
Description
Helpers which are specific to the local share server.
Synopsis
Documentation
relocateToNameRoot :: Absolute -> HashQualified Name -> Branch Transaction -> Transaction (Either BackendError (Absolute, 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