Skip to content

Improve the API for adding tyvars somehow #30

@andy-morris

Description

@andy-morris

This is awful:

do t' <- newName "t"; let t = varT t
   extendTerm "TypedTerm" [t'] [t|Typed $t|] \_ ->
     defaultExtTerm {
       typeVar   = Just [[t|Type $t|]],
       typeAbs   = Just [[t|Type $t|]],
       typeApp   = Just [[t|Type $t|]],
       typeConst = Just [[t|Type $t|]]
     }

There must be a way to do better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions