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.
Asked
Active
Viewed 1,375 times
10

james-see
- 12,210
- 6
- 40
- 47
-
Elm Repl can behave strangely on some linux distros - if you're using one. For example, if you cannot clear the screen with CTRL + L or you cannot easily go back and delete, then you'll have to make a manual fix for this problem. IT is worth double checking that as well. – BenKoshy Oct 20 '19 at 03:15
2 Answers
1
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.