elm-repl icon indicating copy to clipboard operation
elm-repl copied to clipboard

Need documentation improvement for backslash function

Open ssurana2 opened this issue 8 years ago • 3 comments

Hi,

It is just a minor request to update the documentation for backslash function. I started learning Elm today and got stuck at the following example provided in the Core Language section of the docs

image

I started the elm-repl cli on my system and when I tried to execute the function I was getting the following error

image

Initially I was not able to understand what exactly is the reason, because the compiler was also not clearly letting me know what am I doing wrong. I was able to fix it by adding some whitespace after | in the next line.

The documentation is missing the point of adding a whitespace after | symbol when using backslash (\) for continuing function's code in second line and also why an extra space is even required there?

I am using Elm 0.18.0 on MacOS Sierra

ssurana2 avatar Dec 19 '16 06:12 ssurana2

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot avatar Dec 19 '16 06:12 process-bot

Someone else commented on this elsewhere.

rtfeldman avatar Jan 25 '17 20:01 rtfeldman

This looks like it was resolved here?

jasonpeacock avatar Feb 17 '18 21:02 jasonpeacock