-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot bind variables with let
#3
Comments
Try let x = 5 in
show x let
f = (* 2)
x = 5
in
show $ f x |
Sure! That does work. However, |
Sorry about the confusion. At the moment, only Haskell expressions (as opposed to statements) can be parsed and evaluated. Statements (e.g. |
As of commit 83d4963 , you can execute monadic statements. In particular, you can introduce new variables with
The |
The |
results in
Using just
results in the very helpful message:
:)
The text was updated successfully, but these errors were encountered: