Skip to content
Snippets Groups Projects
Commit ca898318 authored by Ryan Scott's avatar Ryan Scott
Browse files

WIP: Factor out HsPatSigType for pat sigs/RULE term sigs (#16762)

This implements chunks (2) and (3) of
ghc/ghc#16762 (comment 270170). Namely,
it introduces a dedicated `HsPatSigType` AST type, which represents
the types that can appear in pattern signatures and term-level `RULE`
binders. Previously, these were represented with `LHsSigWcType`.
Although `LHsSigWcType` is isomorphic to `HsPatSigType`, the intended
semantics of the two types are slightly different, as evidenced by
the fact that they have different code paths in the renamer and
typechecker. See also my additions to `Note [HsType binders]`.
parent 40c71c2c
No related branches found
No related tags found
No related merge requests found
Showing
with 168 additions and 82 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment