... | ... | @@ -514,8 +514,11 @@ The `Win32` package exposes helpers that can be used to aid in supporting WINIO |
|
|
|
|
|
### `base-4.15.*`
|
|
|
|
|
|
#### `unsafeCoerce#`
|
|
|
The `unsafeCoerce#` function has been moved from `GHC.Prim` to `Unsafe.Coerce`. As a result, attempting to import `unsafeCoerce#` from `GHC.Prim` (or `GHC.Base`, which previously re-exported `unsafeCoerce#`) will result in an error with GHC 9.0. A backwards-compatible way to fix the error is to import `unsafeCoerce#` from `GHC.Exts` instead.
|
|
|
|
|
|
#### `withForeignPtr`
|
|
|
|
|
|
`Foreign.ForeignPtr.withForeignPtr` is now no longer able to unbox its result. That is, given a program like:
|
|
|
```hs
|
|
|
readWord8 :: ForeignPtr Word8 -> IO ...
|
... | ... | |