-- * For integral types inclusive range is used.
- -- * For floating point numbers range (a,b] is used.
+ -- * For floating point numbers range (a,b] is used if one ignores
uniformR :: (PrimMonad m) => (a,a) -> Gen (PrimState m) -> m a
instance Variate Int8 where
-- Safe version of unsafeFreeze.
-- NOTE: vector-0.7 will provide function `freeze' with same
-- functionality. This function shall be removed when support for
--- vector<=0.6 is dropped
+-- vector<=0.6 is dropped
safeFreeze :: (PrimMonad m, Vector v a) => G.Mutable v (PrimState m) a -> m (v a)
v' <- GM.unsafeNew (GM.length v)