summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Vector.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Data/Packed/Internal/Vector.hs')
-rw-r--r--lib/Data/Packed/Internal/Vector.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Data/Packed/Internal/Vector.hs b/lib/Data/Packed/Internal/Vector.hs
index 5784861..ac0f176 100644
--- a/lib/Data/Packed/Internal/Vector.hs
+++ b/lib/Data/Packed/Internal/Vector.hs
@@ -171,6 +171,7 @@ infixl 9 @>
171-} 171-}
172join :: Storable t => [Vector t] -> Vector t 172join :: Storable t => [Vector t] -> Vector t
173join [] = error "joining zero vectors" 173join [] = error "joining zero vectors"
174join [v] = v
174join as = unsafePerformIO $ do 175join as = unsafePerformIO $ do
175 let tot = sum (map dim as) 176 let tot = sum (map dim as)
176 r@V {fptr = p} <- createVector tot 177 r@V {fptr = p} <- createVector tot