8000 M1g by aryairani · Pull Request #1000 · unisonweb/unison · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

M1g #1000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Nov 26, 2019
Merged

M1g #1000

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
44a9d32
fixed typo
EvanBurchard Nov 2, 2019
c136792
suffixify function
pchiusano Nov 9, 2019
de5f87b
Compiler bug is not a type error.
TomasMikula Nov 6, 2019
8f84e05
if there's multiple names available, use the shortest one
pchiusano Nov 10, 2019
d35688a
remove trace
pchiusano Nov 10, 2019
d6b903c
hook up suffix-based resolution to the parser + add test case for it
pchiusano Nov 12, 2019
0d4dc06
suffixify0 / suffixify cleanup
pchiusano Nov 12, 2019
fa5c5f0
using suffixified pretty printer, looks great
pchiusano Nov 12, 2019
5bd4d67
fix printing of recursive definitions
pchiusano Nov 12, 2019
fa78014
Merge remote-tracking branch 'origin/master' into topic/suffix-resolve
pchiusano Nov 12, 2019
226bc8b
Merge remote-tracking branch 'origin/master' into topic/suffix-resolve
pchiusano Nov 12, 2019
fdeb175
ls and todo output suffixified
pchiusano Nov 13, 2019
aa49908
Merge remote-tracking branch 'origin/master' into topic/suffix-resolve
pchiusano Nov 13, 2019
6fb968c
display command uses suffixified output
pchiusano Nov 13, 2019
00d0fc8
type based search uses suffixed input + regenerated transcripts
pchiusano Nov 13, 2019
24b3af8
Output all type errors instead of just the first one where possible
TomasMikula Nov 14, 2019
a83f7a9
Merge branch 'master' into CompilerBug
TomasMikula Nov 14, 2019
1db1626
CI to check for unexpected transcript changes
aryairani Nov 15, 2019
69ec844
Update .travis.yml
aryairani Nov 15, 2019
51b0a07
Update .travis.yml
aryairani Nov 16, 2019
0cf3e59
Update .travis.yml
aryairani Nov 16, 2019
423e78b
Update .travis.yml
aryairani Nov 16, 2019
63333db
`push` no longer requires git repo to contain a codebase...
aryairani Nov 18, 2019
9a0350a
Address PR comments
pchiusano Nov 19, 2019
20f148e
remove redundant fetch & flesh out scripts/test-git.bash
aryairani Nov 19, 2019
92ccc45
Merge pull request #963 from unisonweb/topic/suffix-resolve
aryairani Nov 19, 2019
4acc33e
delete stray traceShowId
aryairani Nov 20, 2019
d0db373
delete test-git.bash (and its Github API fns) in favor of haskell test
aryairani Nov 20, 2019
5e540ba
try coaxing travis into folding test output
aryairani Nov 20, 2019
46c0f04
Merge pull request #976 from unisonweb/topic/971-git-error
aryairani Nov 20, 2019
eb826d3
with -n \r
aryairani Nov 20, 2019
418413e
try with a local function
aryairani Nov 20, 2019
4693aef
try a block scalar
aryairani Nov 20, 2019
c075069
just get rid of the script section
aryairani Nov 20, 2019
f9a348d
Merge branch 'master' into CompilerBug
aryairani Nov 20, 2019
6db0753
Merge pull request #983 from unisonweb/topic/travis-fold-tests
aryairani Nov 20, 2019
3f18aef
Update CONTRIBUTORS.markdown
EvanBurchard Nov 21, 2019
3061d0e
Merge pull request #923 from EvanBurchard/patch-1
aryairani Nov 21, 2019
fc133d3
Merge pull request #986 from EvanBurchard/patch-2
aryairani Nov 21, 2019
504e53b
resolve.{term,type} => replace.{term,type} and updated transcripts
pchiusano Nov 21, 2019
f1ef35d
fixed the input names for the reflog
aryairani Nov 21, 2019
ae9cb27
Update .travis.yml
aryairani Nov 21, 2019
d315a25
Update .travis.yml
aryairani Nov 21, 2019
2f1c63c
Update .travis.yml
aryairani Nov 21, 2019
55ae239
Merge pull request #988 from unisonweb/topic/replace
pchiusano Nov 21, 2019
2a0231b
Merge pull request #969 from unisonweb/ci-check-transcripts-unmodified
pchiusano Nov 22, 2019
ddd7044
add haskeline.iml to .gitignore
aryairani Nov 22, 2019
0579ed0
reset permissions on {Term,Type}Printer.hs
aryairani Nov 22, 2019
acf30ed
Merge pull request #941 from TomasMikula/CompilerBug
pchiusano Nov 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_install:
install:
- stack ghc -- --version
- stack --no-terminal build

script:
- stack --no-terminal exec tests
- stack --no-terminal exec transcripts
# fail if running transcripts modified any versioned files
- x=`git status --porcelain -uno` bash -c 'if [[ -n $x ]]; then echo "$x" && false; fi'
1 change: 1 addition & 0 deletions CONTRIBUTORS.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ The format for this list: name, GitHub handle, and then optional blurb about wha
* Jonas De Vuyst (@jdevuyst)
* George Marrows (@georgemarrows)
* Florian Thurm (@0xflotus)
* Evan Burchard (@evanburchard)
2 changes: 1 addition & 1 deletion docs/LanguageReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ ability Store v where
put : v -> ()
```

This results in a new ability type constructor `Store` which takes a type argument `v`. It also create two value-level constructors named `get` and `put`. The idea is that `get` provides the ability to "get" a value of type `v` from somewhere, and `put` allows "putting" a value of type `v` somewhere. Where exactly these values of type `v` will be kept depends on the handler.
This results in a new ability type constructor `Store` which takes a type argument `v`. It also creates two value-level constructors named `get` and `put`. The idea is that `get` provides the ability to "get" a value of type `v` from somewhere, and `put` allows "putting" a value of type `v` somewhere. Where exactly these values of type `v` will be kept depends on the handler.

The `Store` constructors `get` and `put` have the following types:

Expand Down
9 changes: 9 additions & 0 deletions parser-typechecker/src/Unison/Codebase/BranchLoadMode.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Unison.Codebase.BranchLoadMode where

-- When loading a nonexistent branch, what should happen?
-- Could bomb (`FailIfMissing`) or return the empty branch (`EmptyIfMissing`).
--
-- `EmptyIfMissing` mode is used when attempting to load a user-specified
-- branch. `FailIfMissing` is used when loading the root branch - if the root
-- does not exist, that's a serious problem.
data BranchLoadMode = FailIfMissing | EmptyIfMissing deriving (Eq, Show)
3 changes: 2 additions & 1 deletion parser-typechecker/src/Unison/Codebase/Editor/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import Unison.ShortHash ( ShortHash )
import Unison.Type ( Type )
import Unison.Codebase.ShortBranchHash
( ShortBranchHash )
import Unison.Codebase.BranchLoadMode (BranchLoadMode)


type AmbientAbilities v = [Type v Ann]
Expand Down Expand Up @@ -127,7 +128,7 @@ data Command m i v a where
LoadLocalBranch :: Branch.Hash -> Command m i v (Branch m)

LoadRemoteRootBranch ::
RemoteRepo -> Command m i v (Either GitError (Branch m))
BranchLoadMode -> RemoteRepo -> Command m i v (Either GitError (Branch m))

-- returns NoRemoteNamespaceWithHash or RemoteNamespaceHashAmbiguous
-- if no exact match.
Expand Down
26 changes: 11 additions & 15 deletions parser-typechecker/src/Unison/Codebase/Editor/Git.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,30 @@ shallowPullFromGit localPath url gitBranch = do
pullGitRootBranch
:: MonadIO m
=> FilePath
-> BranchLoadMode
-> Codebase m v a
-> Text
-> Maybe Text
-> ExceptT GitError m (Branch m)
pullGitRootBranch localPath codebase url treeish =
pullGitBranch localPath codebase url treeish Nothing
pullGitRootBranch localPath loadMode codebase url treeish =
pullGitBranch localPath codebase url treeish (Left loadMode)

-- pull repo & load arbitrary branch
-- if `loadInfo` is Left, we try to load the root branch;
-- if Right, we try to load the specified hash
pullGitBranch
:: MonadIO m
=> FilePath
-> Codebase m v a
-> Text
-> Maybe Text
-> Maybe ShortBranchHash
-> Either BranchLoadMode ShortBranchHash
-> ExceptT GitError m (Branch m)
pullGitBranch localPath codebase url treeish sbh = do
pullGitBranch localPath codebase url treeish loadInfo = do
pullFromGit localPath url treeish
branch <- case sbh of
Nothing -> lift $ FC.getRootBranch (localPath </> codebasePath)
Just sbh -> do
branch <- case loadInfo of
Left loadMode -> lift $ FC.getRootBranch loadMode gitCodebasePath
Right sbh -> do
branchCompletions <- lift $ FC.branchHashesByPrefix gitCodebasePath sbh
case toList branchCompletions of
[] -> throwError $ NoRemoteNamespaceWithHash url treeish sbh
Expand Down Expand Up @@ -122,15 +125,8 @@ clone :: MonadError GitError m => MonadIO m => Text -> FilePath -> m ()
clone uri localPath = "git" ["clone", uri, Text.pack localPath]
`onError` throwError (NoRemoteRepoAt uri)

shallowClone :: MonadError GitError m => MonadIO m => Text -> FilePath -> m ()
shallowClone uri localPath =
"git" ["clone", "--depth=1", uri, Text.pack localPath]
`onError` throwError (NoRemoteRepoAt uri)

pull :: MonadError GitError m => MonadIO m => FilePath -> Text -> Maybe Text -> m ()
pull localPath uri treeish = do
gitIn localPath (["fetch", uri] ++ toList treeish)
`onError` throwError (NoRemoteRepoAt uri)
pull localPath _uri treeish = do
for_ treeish $ \treeish ->
liftIO $ gitIn localPath ["checkout", treeish]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ commandLine config awaitInput setBranchRef rt notifyUser codebase =
SyncLocalRootBranch branch -> do
setBranchRef branch
Codebase.putRootBranch codebase branch
LoadRemoteRootBranch GitRepo {..} -> do
LoadRemoteRootBranch loadMode GitRepo {..} -> do
tmp <- tempGitDir url commit
runExceptT $ Git.pullGitRootBranch tmp codebase url commit
runExceptT $ Git.pullGitRootBranch tmp loadMode codebase url commit
SyncRemoteRootBranch GitRepo {..} branch -> do
tmp <- tempGitDir url commit
runExceptT
Expand Down Expand Up @@ -152,7 +152,7 @@ commandLine config awaitInput setBranchRef rt notifyUser codebase =
BranchHashesByPrefix h -> Codebase.branchHashesByPrefix codebase h
LoadRemoteShortBranch GitRepo{..} sbh -> do
tmp <- tempGitDir url commit
runExceptT $ Git.pullGitBranch tmp codebase url commit (Just sbh)
runExceptT $ Git.pullGitBranch tmp codebase url commit (Right sbh)
ParseType names (src, _) -> pure $
Parsers.parseType (Text.unpack src) (Parser.ParsingEnv mempty names)

Expand Down
66 changes: 37 additions & 29 deletions parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{-# OPTIONS_GHC -Wno-partial-type-signatures #-}
--{-# OPTIONS_GHC -Wno-unused-imports #-} -- todo: delete
{-# OPTIONS_GHC -Wno-unused-top-binds #-} -- todo: delete
{-# OPTIONS_GHC -Wno-unused-local-binds #-} -- todo: delete
--{-# OPTIONS_GHC -Wno-unused-matches #-} -- todo: delete

{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE OverloadedStrings #-}
Expand Down Expand Up @@ -54,6 +52,7 @@ import Unison.Codebase.Branch ( Branch(..)
, Branch0(..)
)
import qualified Unison.Codebase.Branch as Branch
import Unison.Codebase.BranchLoadMode ( BranchLoadMode(FailIfMissing, EmptyIfMissing) )
import qualified Unison.Codebase.BranchUtil as BranchUtil
import qualified Unison.Codebase.Causal as Causal
import qualified Unison.Codebase.Metadata as Metadata
Expand Down Expand Up @@ -245,10 +244,10 @@ loop = do
let lexed = L.lexer (Text.unpack sourceName) (Text.unpack text)
withFile [] sourceName (text, lexed) $ \unisonFile -> do
sr <- toSlurpResult unisonFile <$> slurpResultNames0
hnames <- makeShadowedPrintNamesFromLabeled
names <- makeShadowedPrintNamesFromLabeled
(UF.termSignatureExternalLabeledDependencies unisonFile)
(UF.typecheckedToNames0 unisonFile)
ppe <- prettyPrintEnv hnames
ppe <- PPE.suffixifiedPPE <$> prettyPrintEnvDecl names
eval (Notify $ Typechecked sourceName ppe sr unisonFile)
r <- eval . Evaluate ppe $ unisonFile
case r of
Expand Down Expand Up @@ -294,12 +293,12 @@ loop = do
DeleteTypeI def -> "delete.type" <> hqs' def
DeleteBranchI opath -> "delete.namespace " <> ops' opath
DeletePatchI path -> "delete.patch " <> ps' path
ResolveTermI srcH targetH p ->
"resolve.term " <> SH.toText srcH <> " "
ReplaceTermI srcH targetH p ->
"replace.term " <> SH.toText srcH <> " "
<> SH.toText targetH <> " "
<> opatch p
ResolveTypeI srcH targetH p ->
"resolve.type " <> SH.toText srcH <> " "
ReplaceTypeI srcH targetH p ->
"replace.type " <> SH.toText srcH <> " "
<> SH.toText targetH <> " "
<> opatch p
ResolveTermNameI path -> "resolve.termName " <> hqs' path
Expand Down Expand Up @@ -586,7 +585,7 @@ loop = do

NamesI thing -> do
len <- eval CodebaseHashLength
parseNames0 <- basicParseNames0
parseNames0 <- Names3.suffixify0 <$> basicParseNames0
let filtered = case thing of
HQ.HashOnly shortHash ->
Names.filterBySHs (Set.singleton shortHash) parseNames0
Expand Down Expand Up @@ -829,7 +828,7 @@ loop = do
-- We might like to make sure that the user search terms get used as
-- the names in the pretty-printer, but the current implementation
-- doesn't.
ppe <- prettyPrintEnv printNames
ppe <- prettyPrintEnvDecl printNames
let loc = case outputLoc of
ConsoleLocation -> Nothing
FileLocation path -> Just path
Expand All @@ -855,7 +854,7 @@ loop = do

FindShallowI pathArg -> do
prettyPrintNames0 <- basicPrettyPrintNames0
ppe <- prettyPrintEnv $ Names prettyPrintNames0 mempty
ppe <- fmap PPE.suffixifiedPPE . prettyPrintEnvDecl $ Names prettyPrintNames0 mempty
hashLen <- eval CodebaseHashLength
let pathArgAbs = Path.toAbsolutePath currentPath' pathArg
b0 <- Branch.head <$> getAt pathArgAbs
Expand Down Expand Up @@ -944,7 +943,7 @@ loop = do
Right results -> do
numberedArgs .= fmap searchResultToHQString results
results' <- loadSearchResults results
ppe <- prettyPrintEnv =<<
ppe <- prettyPrintEnv . Names3.suffixify =<<
makePrintNamesFromLabeled'
(foldMap SR'.labeledDependencies results')
respond $ ListOfDefinitions ppe F438 isVerbose results'
Expand All @@ -966,7 +965,7 @@ loop = do
BranchUtil.makeDeleteTermName (resolveSplit' (HQ'.toName <$> hq))
go r = stepManyAt . fmap makeDelete . toList . Set.delete r $ conflicted

ResolveTermI from to patchPath -> do
ReplaceTermI from to patchPath -> do
let patchPath' = fromMaybe defaultPatchPath patchPath
patch <- getPatchAt patchPath'
fromRefs <- eval $ ReferencesByShortHash from
Expand Down Expand Up @@ -1011,7 +1010,7 @@ loop = do
(hashConflicted from .
Set.map (Referent.Ref . DerivedId))

ResolveTypeI from to patchPath -> do
ReplaceTypeI from to patchPath -> do
let patchPath' = fromMaybe defaultPatchPath patchPath
patch <- getPatchAt patchPath'
fromRefs <- eval $ ReferencesByShortHash from
Expand Down Expand Up @@ -1057,11 +1056,11 @@ loop = do
stepAt ( Path.unabsolute currentPath'
, doSlurpAdds (Slurp.adds sr) uf)
eval . AddDefsToCodebase . filterBySlurpResult sr $ uf
ppe <- prettyPrintEnv =<<
ppe <- prettyPrintEnvDecl =<<
makeShadowedPrintNamesFromLabeled
(UF.termSignatureExternalLabeledDependencies uf)
(UF.typecheckedToNames0 uf)
respond $ SlurpOutput input ppe sr
respond $ SlurpOutput input (PPE.suffixifiedPPE ppe) sr

UpdateI maybePatchPath hqs -> case uf of
Nothing -> respond $ NoUnisonFile input
Expand Down Expand Up @@ -1161,7 +1160,7 @@ loop = do
TodoI patchPath branchPath' -> do
patch <- getPatchAt (fromMaybe defaultPatchPath patchPath)
names <- makePrintNamesFromLabeled' $ Patch.labeledDependencies patch
ppe <- prettyPrintEnv names
ppe <- prettyPrintEnvDecl names
branch <- getAt $ Path.toAbsolutePath currentPath' branchPath'
let names0 = Branch.toNames0 (Branch.head branch)
-- showTodoOutput only needs the local references
Expand Down Expand Up @@ -1278,7 +1277,7 @@ loop = do
Left e -> eval . Notify $ e
Right (repo, Nothing, remotePath) -> do
-- push from srcb to repo's remotePath
eval (LoadRemoteRootBranch repo) >>= \case
eval (LoadRemoteRootBranch EmptyIfMissing repo) >>= \case
Left e -> eval . Notify $ GitError input e
Right remoteRoot -> do
newRemoteRoot <- eval . Eval $
Expand Down Expand Up @@ -1360,14 +1359,15 @@ loop = do
doDisplay :: Var v => OutputLocation -> Names -> Referent -> Action' m v ()
doDisplay outputLoc names r = do
let tm = Term.fromReferent External r
ppe <- prettyPrintEnv names
ppe <- prettyPrintEnvDecl names
latestFile' <- use latestFile
let
loc = case outputLoc of
ConsoleLocation -> Nothing
FileLocation path -> Just path
LatestFileLocation -> fmap fst latestFile' <|> Just "scratch.u"
evalTerm r = fmap ErrorUtil.hush . eval $ Evaluate1 ppe (Term.ref External r)
evalTerm r = fmap ErrorUtil.hush . eval $
Evaluate1 (PPE.suffixifiedPPE ppe) (Term.ref External r)
loadTerm (Reference.DerivedId r) = eval $ LoadTerm r
loadTerm _ = pure Nothing
loadDecl (Reference.DerivedId r) = eval $ LoadType r
Expand Down Expand Up @@ -1416,10 +1416,11 @@ getLinks input src mdTypeStr = do
\r -> loadTypeOfTerm (Referent.Ref r)
let deps = Set.map LD.termRef results <>
Set.unions [ Set.map LD.typeRef . Type.dependencies $ t | Just t <- sigs ]
ppe <- prettyPrintEnv =<< makePrintNamesFromLabeled' deps
let sortedSigs = sortOn snd (toList results `zip` sigs)
let out = [(PPE.termName ppe (Referent.Ref r), r, t) | (r, t) <- sortedSigs ]
pure (Right (ppe, out))
ppe <- prettyPrintEnvDecl =<< makePrintNamesFromLabeled' deps
let ppeDecl = PPE.unsuffixifiedPPE ppe
let sortedSigs = sortOn snd (toList results `zip` sigs)
let out = [(PPE.termName ppeDecl (Referent.Ref r), r, t) | (r, t) <- sortedSigs ]
pure (Right (PPE.suffixifiedPPE ppe, out))

resolveShortBranchHash ::
Input -> ShortBranchHash -> Action' m v (Either (Output v) (Branch m))
Expand All @@ -1444,11 +1445,11 @@ propagatePatch inputDescription patch scopePath = do
let names0 = Branch.toNames0 (Branch.head scope)
-- this will be different AFTER the update succeeds
names <- makePrintNamesFromLabeled' (Patch.labeledDependencies patch)
ppe <- prettyPrintEnv names
ppe <- prettyPrintEnvDecl names
showTodoOutput ppe patch names0
pure changed

showTodoOutput :: PPE.PrettyPrintEnv -> Patch -> Names0 -> Action' m v ()
showTodoOutput :: PPE.PrettyPrintEnvDecl -> Patch -> Names0 -> Action' m v ()
showTodoOutput ppe patch names0 = do
todo <- checkTodo patch names0
numberedArgs .=
Expand Down Expand Up @@ -1648,7 +1649,8 @@ searchBranchExact len names queries = let
respond :: Output v -> Action m i v ()
respond output = eval $ Notify output

-- merges the specified remote branch into the specified local absolute path
-- Merges the specified remote branch into the specified local absolute path.
-- Implementation detail of PullRemoteBranchI
loadRemoteBranchAt
:: Var v
=> Monad m
Expand All @@ -1658,7 +1660,7 @@ loadRemoteBranchAt
-> Path.Absolute
-> Action' m v ()
loadRemoteBranchAt input inputDescription (repo, sbh, remotePath) p = do
b <- eval $ maybe (LoadRemoteRootBranch repo)
b <- eval $ maybe (LoadRemoteRootBranch FailIfMissing repo)
(LoadRemoteShortBranch repo) sbh
case b of
Left e -> eval . Notify $ GitError input e
Expand Down Expand Up @@ -2053,6 +2055,9 @@ lexedSource name src = do
prettyPrintEnv :: Names -> Action' m v PPE.PrettyPrintEnv
prettyPrintEnv ns = eval CodebaseHashLength <&> (`PPE.fromNames` ns)

prettyPrintEnvDecl :: Names -> Action' m v PPE.PrettyPrintEnvDecl
prettyPrintEnvDecl ns = eval CodebaseHashLength <&> (`PPE.fromNamesDecl` ns)

parseSearchType :: (Monad m, Var v)
=> Input -> String -> Action' m v (Either (Output v) (Type v Ann))
parseSearchType input typ = fmap Type.removeAllEffectVars <$> parseType input typ
Expand All @@ -2061,7 +2066,10 @@ parseType :: (Monad m, Var v)
=> Input -> String -> Action' m v (Either (Output v) (Type v Ann))
parseType input src = do
-- `show Input` is the name of the "file" being lexed
(names, lexed) <- lexedSource (Text.pack $ show input) (Text.pack src)
(names0, lexed) <- lexedSource (Text.pack $ show input) (Text.pack src)
parseNames <- Names3.suffixify0 <$> basicParseNames0
let names = Names3.push (Names3.currentNames names0)
(Names3.Names parseNames (Names3.oldNames names0))
e <- eval $ ParseType names lexed
pure $ case e of
Left err -> Left $ TypeParseError input src err
Expand Down
4 changes: 2 additions & 2 deletions parser-typechecker/src/Unison/Codebase/Editor/Input.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ data Input
| AddTypeReplacementI PatchPath Reference Reference
| RemoveTermReplacementI PatchPath Reference Reference
| RemoveTypeReplacementI PatchPath Reference Reference
| ResolveTermI ShortHash ShortHash (Maybe PatchPath)
| ResolveTypeI ShortHash ShortHash (Maybe PatchPath)
| ReplaceTermI ShortHash ShortHash (Maybe PatchPath)
| ReplaceTypeI ShortHash ShortHash (Maybe PatchPath)
| UndoI
-- First `Maybe Int` is cap on number of results, if any
-- Second `Maybe Int` is cap on diff elements shown, if any
Expand Down
6 changes: 3 additions & 3 deletions parser-typechecker/src/Unison/Codebase/Editor/Output.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ data Output v
| DisplayRendered (Maybe FilePath) (P.Pretty P.ColorText)
-- "display" definitions, possibly to a FilePath on disk (e.g. editing)
| DisplayDefinitions (Maybe FilePath)
PPE.PrettyPrintEnv
PPE.PrettyPrintEnvDecl
(Map Reference (DisplayThing (Decl v Ann)))
(Map Reference (DisplayThing (Term v Ann)))
| TodoOutput PPE.PrettyPrintEnv (TO.TodoOutput v Ann)
| TodoOutput PPE.PrettyPrintEnvDecl (TO.TodoOutput v Ann)
| TestIncrementalOutputStart PPE.PrettyPrintEnv (Int,Int) Reference (Term v Ann)
| TestIncrementalOutputEnd PPE.PrettyPrintEnv (Int,Int) Reference (Term v Ann)
| TestResults TestReportStats
Expand All @@ -147,7 +147,7 @@ data Output v
| NoConfiguredGitUrl PushPull Path'
| ConfiguredGitUrlParseError PushPull Path' Text String
| ConfiguredGitUrlIncludesShortBranchHash PushPull RemoteRepo ShortBranchHash Path
| DisplayLinks PPE.PrettyPrintEnv Metadata.Metadata
| DisplayLinks PPE.PrettyPrintEnvDecl Metadata.Metadata
(Map Reference (DisplayThing (Decl v Ann)))
(Map Reference (DisplayThing (Term v Ann)))
| LinkFailure Input
Expand Down
Loading
0