Skip to content

Commit 178c916

Browse files
authored
Merge pull request #88 from mlang/NaturalTransformation
Use ~>
2 parents b1bab02 + a32cdf1 commit 178c916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Array.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import Data.Unfoldable (class Unfoldable, unfoldr)
129129
import Partial.Unsafe (unsafePartial)
130130

131131
-- | Convert an `Array` into an `Unfoldable` structure.
132-
toUnfoldable :: forall f a. Unfoldable f => Array a -> f a
132+
toUnfoldable :: forall f. Unfoldable f => Array ~> f
133133
toUnfoldable xs = unfoldr f 0
134134
where
135135
len = length xs
@@ -138,7 +138,7 @@ toUnfoldable xs = unfoldr f 0
138138
| otherwise = Nothing
139139

140140
-- | Convert a `Foldable` structure into an `Array`.
141-
fromFoldable :: forall f a. Foldable f => f a -> Array a
141+
fromFoldable :: forall f. Foldable f => f ~> Array
142142
fromFoldable = fromFoldableImpl foldr
143143

144144
foreign import fromFoldableImpl

0 commit comments

Comments
 (0)