Removing the .Safe modules from vector (was: Haskell Platform proposal: Add the vector package)

Twan van Laarhoven twanvl at
Fri Aug 31 15:05:28 CEST 2012

On 30/08/12 03:33, Johan Tibell wrote:
>   * removes all the .Safe modules [1],
>   * adds new .Unsafe modules, and
>   * marks the functions that are now exported through the .Unsafe
> modules deprecated in their original (non-.Unsafe) location.

Is there a particular reason for first deprecating the functions exported from 
Data.Vector, instead of just removing them from their original location? By 
removing the Data.Vector.Safe module you already break some existing code, with 
the easy fix of moving to import Data.Vector. Moving the the unsafe functions to 
Data.Vector.Unsafe would introduce similar breakage, with a similarly easy fix 
of adding an import declaration.


More information about the Libraries mailing list