mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-23 08:18:04 +03:00
9a362f7101
Exploded Codebase.referencesByPrefix into three functions: - referencesByPrefix :: Text -> m (Set Reference.Id) + termReferencesByPrefix :: ShortHash -> m (Set Reference.Id) + typeReferencesByPrefix :: ShortHash -> m (Set Reference.Id) + termReferentsByPrefix :: ShortHash -> m (Set (Referent' Reference.Id)) for top-level terms, top-level types, and for Ref/Con mix. They only return "derived" references, the thinking is that builtins will come from a higher level api. Exploded Command.ReferencesByShortHash into three functions - ReferencesByShortHash :: ShortHash -> Command m i v (Set Reference.Id) + TypeReferencesByShortHash :: ShortHash -> Command m i v (Set Reference) + TermReferencesByShortHash :: ShortHash -> Command m i v (Set Reference) + TermReferentsByShortHash :: ShortHash -> Command m i v (Set Referent) I actually don't remember why it was ok that it was Reference.Id before but isn't now. Maybe we hadn't wanted to auto-complete Builtin names? I don't remember. controversial? * Added a type arg `r` to `Referent`; type alias and patterns for compat. * Deleted BranchUtil.getTermByShortHash because I'm guessing we no longer want to limit such searches to the branch? Uncertain. * Reference.fromShortHash rejects inputs with ctorIds in them; seemed better than ignoring them, but I could imagine there being a case for each. |
||
---|---|---|
.. | ||
src/Unison | ||
LICENSE | ||
unison-core.cabal |