We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1bab02 + a32cdf1 commit 178c916Copy full SHA for 178c916
src/Data/Array.purs
@@ -129,7 +129,7 @@ import Data.Unfoldable (class Unfoldable, unfoldr)
129
import Partial.Unsafe (unsafePartial)
130
131
-- | Convert an `Array` into an `Unfoldable` structure.
132
-toUnfoldable :: forall f a. Unfoldable f => Array a -> f a
+toUnfoldable :: forall f. Unfoldable f => Array ~> f
133
toUnfoldable xs = unfoldr f 0
134
where
135
len = length xs
@@ -138,7 +138,7 @@ toUnfoldable xs = unfoldr f 0
138
| otherwise = Nothing
139
140
-- | Convert a `Foldable` structure into an `Array`.
141
-fromFoldable :: forall f a. Foldable f => f a -> Array a
+fromFoldable :: forall f. Foldable f => f ~> Array
142
fromFoldable = fromFoldableImpl foldr
143
144
foreign import fromFoldableImpl
0 commit comments