Skip to content

Commit db57498

Browse files
committed
Disambiguate fromList/fromListN
This addresses #104 in a CPP-less way at cost of some minor ugliness...
1 parent 1bece14 commit db57498

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Data/Vector.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module Data.Vector (
150150
-- * Conversions
151151

152152
-- ** Lists
153-
toList, fromList, fromListN,
153+
toList, Data.Vector.fromList, Data.Vector.fromListN,
154154

155155
-- ** Other vector types
156156
G.convert,
@@ -223,8 +223,8 @@ instance Read a => Read (Vector a) where
223223

224224
instance Exts.IsList (Vector a) where
225225
type Item (Vector a) = a
226-
fromList = fromList
227-
fromListN = fromListN
226+
fromList = Data.Vector.fromList
227+
fromListN = Data.Vector.fromListN
228228
toList = toList
229229
#endif
230230

@@ -344,7 +344,7 @@ instance Foldable.Foldable Vector where
344344

345345
instance Traversable.Traversable Vector where
346346
{-# INLINE traverse #-}
347-
traverse f xs = fromList Applicative.<$> Traversable.traverse f (toList xs)
347+
traverse f xs = Data.Vector.fromList Applicative.<$> Traversable.traverse f (toList xs)
348348

349349
{-# INLINE mapM #-}
350350
mapM = mapM

0 commit comments

Comments
 (0)