Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:
Bugfixes:

Other improvements:
- Narrow down unnecessarily imprecise type of `mapWithIndexArray` (#145)

## [v5.0.1](https://github.com/purescript/purescript-foldable-traversable/releases/tag/v5.0.1) - 2021-04-20

Expand Down
2 changes: 1 addition & 1 deletion src/Data/FunctorWithIndex.purs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import Data.Tuple (Tuple, curry)
class Functor f <= FunctorWithIndex i f | f -> i where
mapWithIndex :: forall a b. (i -> a -> b) -> f a -> f b

foreign import mapWithIndexArray :: forall i a b. (i -> a -> b) -> Array a -> Array b
foreign import mapWithIndexArray :: forall a b. (Int -> a -> b) -> Array a -> Array b

instance functorWithIndexArray :: FunctorWithIndex Int Array where
mapWithIndex = mapWithIndexArray
Expand Down