composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
861 stars 66 forks source link

Check that newly introduced and internally used array APIs are using IO callbacks #2820

Open harendra-kumar opened 2 months ago

harendra-kumar commented 2 months ago

For example:

unsafePinnedCreateUsingPtr
    :: MonadIO m => Int -> (Ptr Word8 -> m Int) -> m (MutArray Word8)

can become:

unsafePinnedCreateUsingPtr
    :: MonadIO m => Int -> (Ptr Word8 -> IO Int) -> m (MutArray Word8)

See #2589 .