Skip to content

Commit 446e295

Browse files
committed
Remove circular toList definition.
When writing this, I assumed we have explicit `toList` as we have in other containers. We do not have `toList`, and even if we did, the code would not compile, as the two `toList`s (ours and `Foldable`) would collide.
1 parent bc74f91 commit 446e295

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Data/Sequence.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ instance Foldable Seq where
247247
{-# INLINE length #-}
248248
null = null
249249
{-# INLINE null #-}
250-
toList = toList
251-
{-# INLINE toList #-}
252250
#endif
253251

254252
instance Traversable Seq where

0 commit comments

Comments
 (0)