Skip to content
  • Simon Peyton Jones's avatar
    Expand type synonyms when Linting a forall · 9d600ea6
    Simon Peyton Jones authored
    Trac #14939 showed a type like
       type Alg cls ob = ob
       f :: forall (cls :: * -> Constraint) (b :: Alg cls *). b
    
    where the kind of the forall looks like (Alg cls *), with a
    free cls. This tripped up Core Lint.
    
    I fixed this by making Core Lint a bit more forgiving, expanding
    type synonyms if necessary.
    
    I'm worried that this might not be the whole story; notably
    typeKind looks suspect.  But it certainly fixes this problem.
    9d600ea6