Lennart Augustsson wrote:
> b) Haskell does not have a function called primShiftInt so
> you can't say that's intended or not intended.
I looked once more where it appears: It is used in the
extension libraries which come with hugs and ghc for the
definition of shiftR etc. in Int.hs and Word.hs.
I.e. it is not a part of Haskell (if we define
Haskell as the thing being defined by the report).
I still believe that it might be better to catch the
behavior of C's >> and have mathematically sound
shift operations in Haskell, even if it is only in the
extensions. Otherwise, users who need those operations
would have to define them in Haskell itself, which would
probably be much slower.
Ralf