[GHC] #10867: Primop types should not mention ()

GHC ghc-devs at haskell.org
Fri Sep 11 15:30:34 UTC 2015


#10867: Primop types should not mention ()
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Great.  But what would need to change if we want the type of `check#` to
 be
 {{{
 primop  Check "check#" GenPrimOp
       (State# RealWorld -> (# State# RealWorld, a #) )
    -> State# RealWorld -> State# RealWorld
 }}}
 more like other primops.  Somehow it must be returning that unit tuple.
 (Or perhaps not and it's always been broken!!!)

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


More information about the ghc-tickets mailing list