Reputation: 13206
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
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
orctrl-c
on some platforms.
Just for future reference, Evan (Elm's creator) has created a trove of 'hints' in the elm/compiler repo.
Upvotes: 1