elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Need documentation improvement for backslash function #147

Open ssurana2 opened 7 years ago

ssurana2 commented 7 years ago

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

process-bot commented 7 years ago

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.

rtfeldman commented 7 years ago

Someone else commented on this elsewhere.

jasonpeacock commented 6 years ago

This looks like it was resolved here?