@@ -20,24 +20,24 @@ A lazy linked list.
2020
2121##### Instances
2222``` purescript
23- instance showList :: (Show a) => Show (List a)
24- instance eqList :: (Eq a) => Eq (List a)
25- instance ordList :: (Ord a) => Ord (List a)
26- instance lazyList :: Lazy (List a)
27- instance semigroupList :: Semigroup (List a)
28- instance monoidList :: Monoid (List a)
29- instance functorList :: Functor List
30- instance foldableList :: Foldable List
31- instance unfoldableList :: Unfoldable List
32- instance traversableList :: Traversable List
33- instance applyList :: Apply List
34- instance applicativeList :: Applicative List
35- instance bindList :: Bind List
36- instance monadList :: Monad List
37- instance altList :: Alt List
38- instance plusList :: Plus List
39- instance alternativeList :: Alternative List
40- instance monadPlusList :: MonadPlus List
23+ (Show a) => Show (List a)
24+ (Eq a) => Eq (List a)
25+ (Ord a) => Ord (List a)
26+ Lazy (List a)
27+ Semigroup (List a)
28+ Monoid (List a)
29+ Functor List
30+ Foldable List
31+ Unfoldable List
32+ Traversable List
33+ Apply List
34+ Applicative List
35+ Bind List
36+ Monad List
37+ Alt List
38+ Plus List
39+ Alternative List
40+ MonadPlus List
4141```
4242
4343#### ` runList `
@@ -48,20 +48,20 @@ runList :: forall a. List a -> Lazy (Step a)
4848
4949Unwrap a lazy linked list
5050
51- #### ` fromList `
51+ #### ` toUnfoldable `
5252
5353``` purescript
54- fromList :: forall f a. (Unfoldable f) => List a -> f a
54+ toUnfoldable :: forall f a. (Unfoldable f) => List a -> f a
5555```
5656
5757Convert a list into any unfoldable structure.
5858
5959Running time: ` O(n) `
6060
61- #### ` toList `
61+ #### ` fromFoldable `
6262
6363``` purescript
64- toList :: forall f a. (Foldable f) => f a -> List a
64+ fromFoldable :: forall f a. (Foldable f) => f a -> List a
6565```
6666
6767Construct a list from a foldable structure.
@@ -584,4 +584,22 @@ Collect pairs of elements at the same positions in two lists.
584584
585585Running time: ` O(min(m, n)) `
586586
587+ #### ` toList `
588+
589+ ``` purescript
590+ toList :: forall f a. (Foldable f) => f a -> List a
591+ ```
592+
593+ * Deprecated.* Use ` fromFoldable ` instead. ` toList ` will be removed in a
594+ later version.
595+
596+ #### ` fromList `
597+
598+ ``` purescript
599+ fromList :: forall f a. (Unfoldable f) => List a -> f a
600+ ```
601+
602+ * Deprecated.* Use ` toUnfoldable ` instead. ` fromList ` will be removed in a
603+ later version.
604+
587605
0 commit comments