vector 0.4 → 0.4.1
raw patch · 2 files changed
+6/−4 lines, 2 files
Files
- Data/Vector/Generic.hs +4/−2
- vector.cabal +2/−2
Data/Vector/Generic.hs view
@@ -159,9 +159,11 @@ where n = length v + -- NOTE: the False case comes first in Core so making it the recursive one+ -- makes the code easier to read {-# INLINE get #-}- get i | i < n = case unsafeIndexM v i of Box x -> Just (x, i+1)- | otherwise = Nothing+ get i | i >= n = Nothing+ | otherwise = case unsafeIndexM v i of Box x -> Just (x, i+1) -- | Create a vector from a 'Stream' unstream :: Vector v a => Stream a -> v a
vector.cabal view
@@ -1,5 +1,5 @@ Name: vector-Version: 0.4+Version: 0.4.1 License: BSD3 License-File: LICENSE Author: Roman Leshchinskiy <rl@cse.unsw.edu.au>@@ -42,7 +42,7 @@ Description: Enable assertions that check parameters to functions are reasonable. These will impose a moderate performance cost on users of the library, with the benefit that you get reasonable errors rather than segmentation faults!- Default: False+ Default: True Library Extensions: CPP