Add equality rule for `eqString`
Locally I sometimes have to define a rule
{-# RULES "eqStringEQ" forall x . eqString x x = True #-}
in order for "stuck" expressions to evaluate to True
and for a case expression to be eliminated.
Is there is a reason not to include this RULE directly in GHC.Base?
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |