[GHC] #1005: Add Logical Shift Operators
GHC
trac at galois.com
Thu Nov 16 19:39:21 EST 2006
#1005: Add Logical Shift Operators
----------------------------+-----------------------------------------------
Reporter: rob at mits.coop | Owner:
Type: proposal | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------+-----------------------------------------------
Comment (by ross):
The [http://www.cse.unsw.edu.au/~chak/haskell/ffi/ FFI Addendum] says:
The function `shift` performs sign extension on signed number types;
i.e., right shifts fill the top bits with 1 if the number is negative and
with 0 otherwise.
(This text was missing from Data.Bits)
Isn't that reasonable? That is, use `Word`''n'' to get logical shifts?
(If you want to scrub this ticket, resolve it as `wontfix`)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1005>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list