File tree 3 files changed +4
-2
lines changed
FSharpPlusFable.Tests/FSharpTests
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ module GenericBuilders =
45
45
member inline __.Yield ( x : 'T ) = result x : '`` Monad<'T> ``
46
46
member inline __.Bind ( p : '``Monad < 'T > ``, rest : 'T -> '``Monad < 'U > ``) = p >>= rest : '`` Monad<'U> ``
47
47
member inline __.MergeSources ( t1 : '``Monad < 'T > ``, t2: '``Monad<'U>`` ) : '``Monad < 'T * 'U > `` = Lift2.Invoke tuple2 t1 t2
48
+ member inline __.BindReturn ( x : '``Monad < 'T > ``, f : 'T -> 'U ) : '``Monad < 'U > `` = Map.Invoke f x
48
49
49
50
[<CustomOperation( " select" , MaintainsVariableSpaceUsingBind= true , AllowIntoPattern= true ) >]
50
51
member inline __.Select ( x , [<ProjectionParameter>] f ) = map f x
Original file line number Diff line number Diff line change @@ -1819,7 +1819,7 @@ module MonadTransformers =
1819
1819
let _ = put initialState : ChoiceT< State< int, Choice< unit, string>>>
1820
1820
1821
1821
()
1822
-
1822
+ #if APPLICATIVE _ FIX
1823
1823
[<Test>]
1824
1824
let testStateT () =
1825
1825
let lst1 : StateT < string , _ > = StateT.lift [ 1 ; 2 ]
@@ -1854,6 +1854,7 @@ module MonadTransformers =
1854
1854
areEqual ( Ok 11 ) x
1855
1855
let y = ( fn |> ResultT.run |> Reader.run) - 1
1856
1856
areEqual ( Error NegativeValue) y
1857
+ #endif
1857
1858
1858
1859
module ProfunctorDefaults =
1859
1860
type Fun < 'T , 'U > = Fun of ( 'T -> 'U ) with
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ let monadTransformers = testList "MonadTransformers" [
122
122
let _ = put initialState : ChoiceT< State< int, Choice< unit, string>>>
123
123
124
124
())
125
- #if ! NETSTANDARD3 _ 0
125
+ #if APPLICATIVE _ FIX
126
126
testCase " testStateT" ( fun () ->
127
127
let lst1 : StateT < string , _ > = StateT.lift [ 1 ; 2 ]
128
128
let lst2 : StateT < string , _ > = StateT.lift [ 4 ; 5 ]
You can’t perform that action at this time.
0 commit comments