I'd like to be able to produce a function definition like the following from the readme by pressing <Shift+Enter> where I would otherwise have to press \ then Enter.
factorial n = \
if n < 1 then 1 \
else n * factorial (n-1)
It would be even better if leading whitespace could be inserted automatically. A reasonable approximation to parsing partial expressions could be to insert the same amount of whitespace as the previous line had, unless there is none, in which case some standard amount of whitespace should be added.
REPLs for several other languages have this feature as you can see here, including whitespace significant languages like python3.
I'd like to be able to produce a function definition like the following from the readme by pressing <Shift+Enter> where I would otherwise have to press \ then Enter.
It would be even better if leading whitespace could be inserted automatically. A reasonable approximation to parsing partial expressions could be to insert the same amount of whitespace as the previous line had, unless there is none, in which case some standard amount of whitespace should be added.
REPLs for several other languages have this feature as you can see here, including whitespace significant languages like python3.
Elm version 0.18 Ubuntu 16.04 LTS node v6.9.1