Skip to content

Add support for let expressions with multiple let bindings#266

Merged
Gabriella439 merged 2 commits intomasterfrom
gabriel/multi_let
Nov 8, 2018
Merged

Add support for let expressions with multiple let bindings#266
Gabriella439 merged 2 commits intomasterfrom
gabriel/multi_let

Conversation

@Gabriella439
Copy link
Copy Markdown
Contributor

Fixes #260

In other words, this is now legal:

let x = 1
let y = 2
in  x + y

Fixes #260

In other words, this is now legal:

```haskell
let x = 1
let y = 2
in  x + y
```
@Gabriella439
Copy link
Copy Markdown
Contributor Author

cc: @vapourismo

@Gabriella439 Gabriella439 merged commit 17f8a93 into master Nov 8, 2018
@Gabriella439 Gabriella439 deleted the gabriel/multi_let branch November 8, 2018 17:16
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Nov 10, 2018
... as standardized in: dhall-lang/dhall-lang#266

This also adds `dhall lint` support for consolidating nested `let` expressions
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Nov 10, 2018
... as standardized in: dhall-lang/dhall-lang#266

This also adds `dhall lint` support for consolidating nested `let` expressions
Gabriella439 added a commit that referenced this pull request Nov 10, 2018
In #266 I forgot to specify how to
encode `let` expressions with multiple bindings.  This changes the encoding
to encode a `let` expression with multiple bindings as a single list with
three elements per binding.

This is not compatible with the previous encoding which would omit the type
annotation when absent instead of using `null`
Gabriella439 added a commit that referenced this pull request Nov 13, 2018
In #266 I forgot to specify how to
encode `let` expressions with multiple bindings.  This changes the encoding
to encode a `let` expression with multiple bindings as a single list with
three elements per binding.

This is not compatible with the previous encoding which would omit the type
annotation when absent instead of using `null`
Gabriella439 added a commit to dhall-lang/dhall-haskell that referenced this pull request Nov 13, 2018
... as standardized in: dhall-lang/dhall-lang#266

This also adds `dhall lint` support for consolidating nested `let` expressions
TristanCacqueray pushed a commit to TristanCacqueray/dhall-lang that referenced this pull request Jan 4, 2025
This commit introduces dhalli, a fairly minimal Dhall REPL that supports:

* Evalution of Dhall expressions along with import resolution
* Type inspection of abritrary expressions
* Syntax highlighting and pretty printing for output
* Persistent bindings with :let
* Expression lookup with an implicit "it" binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants