Skip to content

Get pretty-printed AST closer to round-tripping #121

@Mikolaj

Description

@Mikolaj

This is the following TODO in the code

-- TODO: ensure that terms roundtrip if neither loseRoudtrip
-- nor ignoreNestedLambdas is set and that explicit sharing is then preserved
-- as opposed to displaying sharing as Haskell lets.

The goal is to make the output of pretty-printing accepted by Haskell and without losing the explicit sharing the AST provides. First we'd need small tests of the round-trip property, which will involved invoking GHC on the strings produced by pretty-printing. Then we can make more and more tests pass, so this issue has many subtasks (and so may be fixed gradually, by many PRs). The changes are bound to break some existing tests, so the failing old test results need to be fixed every time pretty-printing is modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions