Could it your use of the backslash? This worked for me in elm-repl: ```elm elm-repl ---- elm-repl 0.17.1 ----------------------------------------------------------- :help for help, :exit to exit, more at < https://github.com/elm-lang/elm-repl> -------------------------------------------------------------------------------- > over9000 powerLevel = if powerLevel > 9000 then "It's over 9000!!!" else "meh" <function> : number -> String > over9000 80 "meh" : String > ```
On Mon, Sep 26, 2016 at 5:39 AM, Daniel Lidström <[email protected]> wrote: > I'm trying to follow along with the introductory repl samples. However, it > is failing for this one: > > > over9000 powerLevel = \ > > | if powerLevel > 9000 then "It's over 9000!!!" else "meh" > > -- SYNTAX PROBLEM -------------------------------------------- > repl-temp-000.elm > > > I ran into something unexpected when parsing your code! > > > 3| over9000 powerLevel = > > ^ > > I am looking for one of the following things: > > > end of input > > whitespace > > > > [~/programming/Elm]: elm-repl -v > > 0.17.1 > > What am I doing wrong? Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
