paf31 / purescript-book

Sources for the PureScript book
454 stars 370 forks source link

Ch 3 - let binding in PSCi #118

Open learningps opened 7 years ago

learningps commented 7 years ago

In this section: https://github.com/paf31/purescript-book/blob/master/text/chapter3.md#test-early-test-often

It says:

We can create an entry by using a record literal, which looks just like an anonymous object in JavaScript. Bind it to a name with a let expression:

When trying to use a let binding in PSCi I get this message:

> let a = 2
(line 1, column 9):
unexpected end of input
expecting ., {, ::, operator, "where", indentation at column 5 or "in"
Declarations in PSCi no longer require "let", as of version 0.11.0