Skip to content

Plan for linear implicit arguments #10

@aspiwack

Description

@aspiwack

In order to isolate the OutsideIn part constraint solving from the type-class resolution. Let's start with doing linear implicit arguments.

The steps to try and reach, in order, or how complex we expect them to be are:

  1. A function of a linear implicit argument, uses it twice (like return (?x, ?x)). Throws a type error.
  2. A function of a linear implicit argument, passes it twice (implicitly) to linear implict argument functions. Throws a type error.
  3. A function, returns a linear implicit argument (via a data constructor). Doesn't use. Throws a type error.
  4. A function, returns a linear implicit argument. Passes it (implicitly) to a linear implicit argument function. Typeckecks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions