Skip to content

Commit 5bb6279

Browse files
committed
Fixes in Compose
1 parent 913f5d2 commit 5bb6279

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/FSharpPlus/Data/Compose.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Compose<'``functorF<'functorG<'t>>``> = Compose of '``functorF<'functorG<'t
1818
/// To be used in Applicative Style expressions, combined with &lt;*&gt;
1919
/// </summary>
2020
/// <category index="1">Functor</category>
21-
static member inline (<!>) (f: 'T -> 'U, x: '``FunctorF<'FunctorG<'T>>``) =
21+
static member inline (<!>) (f: 'T -> 'U, Compose (x: '``FunctorF<'FunctorG<'T>>``)) =
2222
Compose (map (map f: '``FunctorG<'T>`` -> '``FunctorG<'U>``) x : '``FunctorF<'FunctorG<'U>>``)
2323

2424
// Applicative
@@ -32,15 +32,15 @@ type Compose<'``functorF<'functorG<'t>>``> = Compose of '``functorF<'functorG<'t
3232
/// Sequences two composed applicatives left-to-right, discarding the value of the first argument.
3333
/// </summary>
3434
/// <category index="2">Applicative</category>
35-
static member inline ( *>) (x: '``FunctorF<'FunctorG<'T>>``, y: '``FunctorF<'FunctorG<'U>>``) : '``FunctorF<'FunctorG<'U>>`` =
36-
((fun (_: 'T) (k: 'U) -> k) <!> x : '``FunctorF<'FunctorG<'U -> 'U>>``) <*> y
35+
static member inline ( *>) (x: Compose<'``FunctorF<'FunctorG<'T>>``>, y: Compose<'``FunctorF<'FunctorG<'U>>``>) : Compose<'``FunctorF<'FunctorG<'U>>``> =
36+
((fun (_: 'T) (k: 'U) -> k) <!> x : Compose<'``FunctorF<'FunctorG<'U -> 'U>>``>) <*> y
3737

3838
/// <summary>
3939
/// Sequences two composed applicatives left-to-right, discarding the value of the second argument.
4040
/// </summary>
4141
/// <category index="2">Applicative</category>
42-
static member inline (<* ) (x: '``FunctorF<'FunctorG<'U>>``, y: '``FunctorF<'FunctorG<'T>>``): '``FunctorF<'FunctorG<'U>>`` =
43-
((fun (k: 'U) (_: 'T) -> k) <!> x : '``FunctorF<'FunctorG<'T -> 'U>>``) <*> y
42+
static member inline (<* ) (x: Compose<'``FunctorF<'FunctorG<'U>>``>, y: Compose<'``FunctorF<'FunctorG<'T>>``>) : Compose<'``FunctorF<'FunctorG<'U>>``> =
43+
((fun (k: 'U) (_: 'T) -> k) <!> x : Compose<'``FunctorF<'FunctorG<'T -> 'U>>``>) <*> y
4444

4545
static member inline Lift2 (f: 'T -> 'U -> 'V, Compose (x: '``ApplicativeF<'ApplicativeG<'T>``), Compose (y: '``ApplicativeF<'ApplicativeG<'U>``)) =
4646
Compose (Lift2.Invoke (Lift2.Invoke f: '``ApplicativeG<'T>`` -> '``ApplicativeG<'U>`` -> '``ApplicativeG<'V>``) x y: '``ApplicativeF<'ApplicativeG<'V>``)

0 commit comments

Comments
 (0)