Changes between Version 2 and Version 3 of NewPrimopsInGHC7.8


Ignore:
Timestamp:
Aug 22, 2013 2:38:26 PM (8 months ago)
Author:
jstolarek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewPrimopsInGHC7.8

    v2 v3  
    33In GHC 7.8 we modified primops that returned a `Bool`. This includes comparisons between unboxed values (like `==#` or `ltFloat#`) as well as `sameMutableArray#`, `sameMutableByteArray#`, `sameMutableArrayArray#`, `sameMutVar#`, `sameMVar#` and `sameTVar#`. These changes are not backwards compatible and if you used any of these primops then you need to adjust your code. Adjustments are simple and should take no longer than a couple of minutes. 
    44 
    5   * If your code uses primops for comparing unboxed `Char#`, `Int#`, `Word#`, `Float#`, `Double#` or `Addr#` you need to import `GHC.PrimWrappers` module into your code. 
     5  * If your code uses primops for comparing unboxed `Char#`, `Int#`, `Word#`, `Float#`, `Double#` or `Addr#` you need to import `GHC.PrimWrappers` module into your code. Note that `GHC.PrimWrappers` is re-exported by `GHC.Exts`, so in case you imported that module you don't need to add anything. 
    66 
    7   * If your code uses `sameMutableArray#`, `sameMutableByteArray#`, `sameMutableArrayArray#`, `sameMutVar#`, `sameMVar#` or `sameTVar#`, you need to import `GHC.PrimWrappers` and remove `#` from the names of these functions. In other words, functions that you should be using now are `sameMutableArray`, `sameMutableByteArray`, `sameMutableArrayArray`, `sameMutVar`, `sameMVar` and `sameTVar`, respectively.  
     7  * If your code uses `sameMutableArray#`, `sameMutableByteArray#`, `sameMutableArrayArray#`, `sameMutVar#`, `sameMVar#` or `sameTVar#`, you need to import `GHC.PrimWrappers` and remove `#` from the names of these functions. In other words, functions that you should be using now are `sameMutableArray`, `sameMutableByteArray`, `sameMutableArrayArray`, `sameMutVar`, `sameMVar` and `sameTVar`, respectively. 
    88 
    99That's all you need to do. If your interested in technical details behind this change, see [http://ghc.haskell.org/trac/ghc/wiki/PrimBool this page].