From f5339c4ecddb2b9ce17dcca2b0af5de2cbcabeec Mon Sep 17 00:00:00 2001 From: gusty <1261319+gusty@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:49:57 +0100 Subject: [PATCH] Fix: missing functor instance for IReadOnlyDictionary --- src/FSharpPlus/Control/Functor.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharpPlus/Control/Functor.fs b/src/FSharpPlus/Control/Functor.fs index e04a8d01a..2ea6bb2fc 100644 --- a/src/FSharpPlus/Control/Functor.fs +++ b/src/FSharpPlus/Control/Functor.fs @@ -129,9 +129,9 @@ type Map with static member Map ((x: NonEmptySeq<_> , f: 'T->'U), _mthd: Default2) = NonEmptySeq.map f x : NonEmptySeq<'U> static member Map ((x: IEnumerator<_> , f: 'T->'U), _mthd: Default2) = Enumerator.map f x : IEnumerator<'U> static member Map ((x: IDictionary<_,_> , f: 'T->'U), _mthd: Default2) = Dict.map f x : IDictionary<'Key,'U> - static member Map ((x: IReadOnlyDictionary<_,_>, f: 'T->'U), _mthd: Default2) = IReadOnlyDictionary.map f x : IReadOnlyDictionary<'Key,_> static member Map ((x: IObservable<'T> , f: 'T->'U), _mthd: Default2) = Observable.map f x : IObservable<'U> #if !FABLE_COMPILER + static member Map ((x: IReadOnlyDictionary<_,_>, f: 'T->'U), _mthd: Default2) : IReadOnlyDictionary<'Key,_> = IReadOnlyDictionary.mapValues f x static member Map ((x: Nullable<_> , f: 'T->'U), _mthd: Default2) = Nullable.map f x : Nullable<'U> #endif static member Map ((x: IReadOnlyCollection<'T> , f: 'T->'U), _mthd: Default1) = IReadOnlyCollection.map f x : IReadOnlyCollection<'U>