Skip to content
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

Add several new entrypoints to Dhall module #2534

Merged
merged 2 commits into from
Oct 20, 2023

Commits on Sep 10, 2023

  1. Add several new entrypoints to Dhall module

    This adds the following four new high-level entrypoints:
    
    - `interpretExpr`
    - `interpretExprWithSettings`
    - `fromExpr`
    - `fromExprWithSettings`
    
    … as well as several new utilities for running each phase one at a
    time, respecting `InputSettings`:
    
    - `parseWithSettings`
    - `resolveWithSettings`
    - `typecheckWithSettings`
    - `expectWithSettings`
    - `normalizeWithSettings`
    
    This also refactors the other utilities to use those new phase-based
    settings.
    
    The motivation behind this change is to make it easier for people
    to work with raw `Expr`s, so that people don't need to craft strings
    when trying to assemble ASTs to interpret like in this issue:
    
    https://stackoverflow.com/questions/77037023/is-there-an-elegant-way-to-override-dhall-records-in-haskell
    Gabriella439 committed Sep 10, 2023
    Configuration menu
    Copy the full SHA
    ab1c2f1 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Configuration menu
    Copy the full SHA
    db57c23 View commit details
    Browse the repository at this point in the history