james-see
james-see

Reputation: 13206

How to exit the elm repl?

I am learning Elm, and need to be able to exit the elm repl. I tried exit() like python, \q like postgres, typing just exit like MySQL, even :q like Haskell. The only thing I can do is close the terminal to exit, there has to be a better way.

Upvotes: 10

Views: 1568

Answers (2)

Peter S.
Peter S.

Reputation: 131

Just to add a little more detail, after launching the REPL in your terminal/command line, you are prompted to visit the elm-lang site for further information regarding use of the interactive shell:

To exit the REPL, you can type :exit.

You can also press ctrl-d or ctrl-c on some platforms.

-- https://elm-lang.org/0.19.0/repl

Just for future reference, Evan (Elm's creator) has created a trove of 'hints' in the elm/compiler repo.

Upvotes: 1

james-see
james-see

Reputation: 13206

To exit the elm repl you need to type :exit. You can also use Ctrl + d, but I prefer typed commands instead of multi-key holds. I found this answer here as part of the (unofficial) getting started with elm programming guide.

Upvotes: 12

Related Questions