Skip to content
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

Interleave printing with Repl output #20

Merged
merged 6 commits into from
Oct 19, 2023
Merged

Conversation

jmcardon
Copy link
Member

Proto repl was not displaying results as we got them. This fixes this issue.

@jmcardon jmcardon requested a review from rsoeldner October 18, 2023 23:03
@@ -1579,8 +1537,13 @@ runDesugarReplTopLevel
-> Lisp.ReplTopLevel i
-> m (DesugarOutput reso i (ReplTopLevel Name Type raw i))
runDesugarReplTopLevel proxy pdb loaded = \case
Lisp.RTLTopLevel m ->
over dsOut RTLTopLevel <$> runDesugarTopLevel proxy pdb loaded m
-- We do not run desugar here for the repl.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -189,20 +189,10 @@ data TopLevel name ty builtin info
deriving (Show, Functor)

data ReplTopLevel name ty builtin info
= RTLTopLevel (TopLevel name ty builtin info)
| RTLDefConst (DefConst name ty builtin info)
= RTLDefConst (DefConst name ty builtin info)
| RTLDefun (Defun name ty builtin info)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this enough? How about modules?

pact-core/Pact/Core/Repl/Utils.hs Show resolved Hide resolved
pact-core/Pact/Core/Repl/Utils.hs Outdated Show resolved Hide resolved
@jmcardon jmcardon merged commit f7ae828 into master Oct 19, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants