Skip to content

GHCi output is not machine readable #7

Description

@CrystalSplitter

Even with GHCiD, GHCi responses are simply not machine parseable. There's no reliable grammar and there's no escape support. This is most obvious with the :show bindings GHCi builtin command with multi-line nested strings.

This is an upstream issue inherently, but is likely something we can provide a compelling need for and contribute the source code. A simple JSON reply (or some other format) seems easy enough to implement.

I would prefer not to ship with a custom version of GHC, so upstreaming such an effort is likely the only course of action here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingghci issueProblem lies in GHCi, not GHCiTUI.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions