[GHC] #14776: Add equality rule for `eqString`

GHC ghc-devs at haskell.org
Wed Feb 7 17:21:12 UTC 2018


#14776: Add equality rule for `eqString`
-------------------------------------+-------------------------------------
           Reporter:  mpickering     |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 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?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14776>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list