[vector] #30: There is no safe analog of unsafeFreeze
vector
vector at projects.haskell.org
Fri Aug 20 23:42:10 EDT 2010
#30: There is no safe analog of unsafeFreeze
----------------------+-----------------------------------------------------
Reporter: anonymous | Owner:
Type: defect | Status: closed
Priority: major | Milestone:
Version: | Resolution: worksforme
Keywords: |
----------------------+-----------------------------------------------------
Changes (by rl):
* status: new => closed
* resolution: => worksforme
Comment:
Happily, the current darcs version already has this:
{{{
-- | /O(n)/ Yield an immutable copy of the mutable vector.
freeze :: (PrimMonad m, Vector v a) => Mutable v (PrimState m) a -> m (v
a)
{-# INLINE freeze #-}
freeze mv = unsafeFreeze =<< M.clone mv
}}}
--
Ticket URL: <http://trac.haskell.org/vector/ticket/30#comment:1>
vector <http://trac.haskell.org/vector>
Package vector
More information about the vector
mailing list