Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
19033 commits behind the upstream repository.
  • Simon Peyton Jones's avatar
    fb050a33
    Do not bind coercion variables in SpecConstr rules · fb050a33
    Simon Peyton Jones authored
    Trac #14270 showed that SpecConstr could cause nasty Lint failures
    if it generates a RULE that binds coercion varables.  See
    
     * Note [SpecConstr and casts], and
     * the test simplCore/should_compile/T14270.
    
    This doesn't feel like the final word to me, because somehow the
    specialisation "ought" to work.  So I left in a debug WARN to yell if
    the new check acutally fires.
    
    Meanwhile, it stops the erroneous specialisation.
    
    binding coercion
    fb050a33
    History
    Do not bind coercion variables in SpecConstr rules
    Simon Peyton Jones authored
    Trac #14270 showed that SpecConstr could cause nasty Lint failures
    if it generates a RULE that binds coercion varables.  See
    
     * Note [SpecConstr and casts], and
     * the test simplCore/should_compile/T14270.
    
    This doesn't feel like the final word to me, because somehow the
    specialisation "ought" to work.  So I left in a debug WARN to yell if
    the new check acutally fires.
    
    Meanwhile, it stops the erroneous specialisation.
    
    binding coercion
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
SpecConstr.hs 91.44 KiB