Re: [GHC] #6135: Unboxed Booleans

#6135: Unboxed Booleans -------------------------------+-------------------------------------------- Reporter: benl | Owner: jstolarek Type: feature request | Status: patch Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.4.1 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: #605 -------------------------------+-------------------------------------------- Comment(by jstolarek): I need advice regarding names of the modified primops. Right now we have `sameMutableArray#` primop returning a `Bool`. I was thinking that having a primop `sameMutableArray#` returning an `Int#` + having a wrapper `sameMutableArray` will be more elegant (because # at the end distinguishes built-in primops), but this will break people's code. I can follow approach used in patches created so far, that is change the name of the modified primop to `sameMutableArray$#` and reuse the name `sameMutableArray#` for wrapper, which will certainly break less code (people only need to import GHC.PrimWrappers) but seems a bit confusing. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6135#comment:72 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC