Skip to content

Commit be318c1

Browse files
committed
Add since pragma
1 parent c52ac05 commit be318c1

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

vector/src/Data/Vector.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,8 @@ toList = G.toList
21792179
-- 'fromListN', which will provide the exact space the list requires but will
21802180
-- prevent list fusion, or @'force' . 'fromList'@, which will create the
21812181
-- vector and then copy it without the superfluous space.
2182+
--
2183+
-- @since 0.3
21822184
fromList :: [a] -> Vector a
21832185
{-# INLINE fromList #-}
21842186
fromList = G.fromList

vector/src/Data/Vector/Generic.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,8 @@ toList = Bundle.toList . stream
23712371
-- 'fromListN', which will provide the exact space the list requires but will
23722372
-- prevent list fusion, or @'force' . 'fromList'@, which will create the
23732373
-- vector and then copy it without the superfluous space.
2374+
--
2375+
-- @since 0.4
23742376
fromList :: Vector v a => [a] -> v a
23752377
{-# INLINE fromList #-}
23762378
fromList = unstream . Bundle.fromList

vector/src/Data/Vector/Primitive.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,8 @@ toList = G.toList
18431843
-- 'fromListN', which will provide the exact space the list requires but will
18441844
-- prevent list fusion, or @'force' . 'fromList'@, which will create the
18451845
-- vector and then copy it without the superfluous space.
1846+
--
1847+
-- @since 0.4
18461848
fromList :: Prim a => [a] -> Vector a
18471849
{-# INLINE fromList #-}
18481850
fromList = G.fromList

vector/src/Data/Vector/Storable.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,8 @@ toList = G.toList
18901890
-- 'fromListN', which will provide the exact space the list requires but will
18911891
-- prevent list fusion, or @'force' . 'fromList'@, which will create the
18921892
-- vector and then copy it without the superfluous space.
1893+
--
1894+
-- @since 0.4
18931895
fromList :: Storable a => [a] -> Vector a
18941896
{-# INLINE fromList #-}
18951897
fromList = G.fromList

vector/src/Data/Vector/Unboxed.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,8 @@ toList = G.toList
19351935
-- 'fromListN', which will provide the exact space the list requires but will
19361936
-- prevent list fusion, or @'force' . 'fromList'@, which will create the
19371937
-- vector and then copy it without the superfluous space.
1938+
--
1939+
-- @since 0.3
19381940
fromList :: Unbox a => [a] -> Vector a
19391941
{-# INLINE fromList #-}
19401942
fromList = G.fromList

0 commit comments

Comments
 (0)