[GHC] #14140: Better treatment for dataToTag

GHC ghc-devs at haskell.org
Fri Sep 8 21:37:27 UTC 2017


#14140: Better treatment for dataToTag
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  datacon-tags
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3932
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Argh! I should have checked this against HEAD. It seems this was already
 fixed, in 193664d42dbceadaa1e4689dfa17ff1cf5a405a0. We now rewrite

 {{{#!hs
 case dataToTag b of
   16# -> True
   _   -> False
 }}}

 to

 {{{#!hs
 case b of
   OtherOS _ -> True
   _ -> False
 }}}

 which has always been good.

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


More information about the ghc-tickets mailing list