Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Clarification on multi line input in README #152

Open
ohenecoker opened this issue Mar 28, 2017 · 2 comments
Open

Clarification on multi line input in README #152

ohenecoker opened this issue Mar 28, 2017 · 2 comments

Comments

@ohenecoker
Copy link

ohenecoker commented Mar 28, 2017

I am new to elm and currently exploring the elm syntax through the repl. Until recently, every time I attempted to write a multi line input in the repl I like this:

sqr num = \
num * num

I would get this error:

"The = operator is reserved for defining variables. Maybe you want == instead? Or
maybe you are defining a variable, but there is whitespace before it?"

I'm on a mac running macOS 10.12.3 running Elm 0.18.0

This was pretty annoying because I thought I was following the README instructions and it didn't make sense that I was still getting this error. After digging through the web for I while, I found that all I needed was a space after the second line for example:

sqr num =
| num * num

The second space before the body of the function is super critical and space before all other consecutive lines. For the sake of beginners who wouldn't know this off the bat, could someone please include that in the README? Newcomers would find it very helpful. Thanks

@process-bot
Copy link

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.

@kirikaza
Copy link

kirikaza commented Apr 5, 2017

It duplicates #147

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants