Skip to content

Commit a23efbe

Browse files
committed
Bring back the internal toUnorderedVectorT operation for backward compat
1 parent 1172af4 commit a23efbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Data/Array/Internal.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ toUnorderedVectorListT sh a@(T ats ao v) =
271271
else
272272
toVectorListT sh a
273273

274+
{-# INLINE toUnorderedVectorT #-}
275+
toUnorderedVectorT :: (Vector v, VecElem v a) => ShapeL -> T v a -> v a
276+
toUnorderedVectorT sh a = case toUnorderedVectorListT sh a of
277+
[v] -> v
278+
l -> vConcat l
279+
274280
-- Convert from a vector.
275281
{-# INLINE fromVectorT #-}
276282
fromVectorT :: ShapeL -> v a -> T v a

0 commit comments

Comments
 (0)