pawanpoudel / beginning-elm-code

Code examples from the Beginning Elm book - https://elmprogramming.com/
108 stars 19 forks source link

Error in Chapter 2 #8

Open iPatrickReynolds opened 1 year ago

iPatrickReynolds commented 1 year ago

The last bracket in the below is extraneous and will cause issues--I handtype examples, so I was convinced for a while that I'd done something wrong, but it turned out that there was an extra in there. Based on syntax, I'm actually a little surprised that there isn't an opening bracket in front of "p" on line 4 of the below. I believe the extraneous bracket tried to match this nonexistent bracket.

view model = div [ class "jumbotron" ] [ h1 [] [ text "Welcome to Dunder Mifflin!" ] , p [] [ text "Dunder Mifflin Inc. (stock symbol " , strong [] [ text "DMI" ] , text <| """ ) is a micro-cap regional paper and office supply distributor with an emphasis on servicing small-business clients. """ ] ]