Skip to content

Ability to inspect when code doesn't type-check #84

Open
@unode

Description

@unode

The ability to inspect types and info about any function or variable relies on code compiling successfully.
The plugin is smart enough to keep previous information about types but often it leads to misleading or incomplete information when code moves up/down in the file.

ghc includes -fdefer-type-errors and -fdefer-typed-holes (and possibly others) which allow for a successful compilation which fails type-checking.

Would it make sense to include these options by default while using Intero in order to ensure we always keep the ability to inspect code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    better-docsThis issue reports expected behavior, but the documentation and/or error messaging could be betterbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions