Stream: beginners

Topic: Multiline in repl?


view this post on Zulip Jared Cone (Mar 04 2022 at 23:28):

How do you enter a multiline expression in the REPL?

view this post on Zulip Zeljko Nesic (Mar 04 2022 at 23:31):

There is a PR for it.

view this post on Zulip Zeljko Nesic (Mar 04 2022 at 23:31):

Should be merged soon

view this post on Zulip Jared Cone (Mar 04 2022 at 23:32):

:thumbs_up:

view this post on Zulip Brian Carroll (Mar 05 2022 at 10:12):

If it's the command-line REPL you can already do it! Use Shift+Enter!
The web REPL will get the same functionality once the PR is merged.

view this post on Zulip Brian Carroll (Mar 05 2022 at 10:13):

We're going to have to start clarifying this for all REPL questions since we now have two of them with different levels of functionality!

view this post on Zulip Jared Cone (Mar 05 2022 at 22:44):

shift+enter doesn't seem to be working for me, I get this:

Enter an expression, or :help, or :exit/:q.

» test : {

── UNFINISHED RECORD TYPE ──────────────────────────────────────────────────────

I am partway through parsing a record type, but I got stuck here:

4│      test : {

view this post on Zulip Jared Cone (Mar 06 2022 at 04:32):

Also I should clarify I'm using WSL if that matters

view this post on Zulip Anton (Mar 06 2022 at 07:38):

Can you make an issue for that @Jared Cone?

view this post on Zulip Jared Cone (Mar 06 2022 at 21:58):

sure


Last updated: Jul 06 2025 at 12:14 UTC