Skip to content

Commit

Permalink
add missing internal comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Apr 20, 2023
1 parent b129121 commit 4b43d6a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EitherT.ts
Expand Up @@ -324,12 +324,15 @@ export function chain<M>(
export function flatMap<M extends URIS2>(
M: Monad2<M>
): <ME, E, A, B>(ma: Kind2<M, ME, Either<E, A>>, f: (a: A) => Kind2<M, ME, Either<E, B>>) => Kind2<M, ME, Either<E, B>>
/** @internal */
export function flatMap<M extends URIS>(
M: Monad1<M>
): <E, A, B>(ma: Kind<M, Either<E, A>>, f: (a: A) => Kind<M, Either<E, B>>) => Kind<M, Either<E, B>>
/** @internal */
export function flatMap<M>(
M: Monad<M>
): <E, A, B>(ma: HKT<M, Either<E, A>>, f: (a: A) => HKT<M, Either<E, B>>) => HKT<M, Either<E, B>>
/** @internal */
export function flatMap<M>(
M: Monad<M>
): <E, A, B>(ma: HKT<M, Either<E, A>>, f: (a: A) => HKT<M, Either<E, B>>) => HKT<M, Either<E, B>> {
Expand Down
2 changes: 2 additions & 0 deletions src/OptionT.ts
Expand Up @@ -519,9 +519,11 @@ export function chain<M>(
export function flatMap<M extends URIS>(
M: Monad1<M>
): <A, B>(ma: Kind<M, Option<A>>, f: (a: A) => Kind<M, Option<B>>) => Kind<M, Option<B>>
/** @internal */
export function flatMap<M>(
M: Monad<M>
): <A, B>(ma: HKT<M, Option<A>>, f: (a: A) => HKT<M, Option<B>>) => HKT<M, Option<B>>
/** @internal */
export function flatMap<M>(
M: Monad<M>
): <A, B>(ma: HKT<M, Option<A>>, f: (a: A) => HKT<M, Option<B>>) => HKT<M, Option<B>> {
Expand Down
2 changes: 2 additions & 0 deletions src/ReaderT.ts
Expand Up @@ -145,9 +145,11 @@ export function chain<M>(
export function flatMap<M extends URIS>(
M: Chain1<M>
): <R, A, B>(ma: Reader<R, Kind<M, A>>, f: (a: A) => Reader<R, Kind<M, B>>) => Reader<R, Kind<M, B>>
/** @internal */
export function flatMap<M>(
M: Chain<M>
): <R, A, B>(ma: Reader<R, HKT<M, A>>, f: (a: A) => Reader<R, HKT<M, B>>) => Reader<R, HKT<M, B>>
/** @internal */
export function flatMap<M>(
M: Chain<M>
): <R, A, B>(ma: Reader<R, HKT<M, A>>, f: (a: A) => Reader<R, HKT<M, B>>) => Reader<R, HKT<M, B>> {
Expand Down
2 changes: 2 additions & 0 deletions src/StateT.ts
Expand Up @@ -142,7 +142,9 @@ export function chain<M>(
export function flatMap<M extends URIS3>(
M: Chain3<M>
): <S, R, E, A, B>(ma: StateT3<M, S, R, E, A>, f: (a: A) => StateT3<M, S, R, E, B>) => StateT<M, S, B>
/** @internal */
export function flatMap<M>(M: Chain<M>): <S, A, B>(ma: StateT<M, S, A>, f: (a: A) => StateT<M, S, B>) => StateT<M, S, B>
/** @internal */
export function flatMap<M>(
M: Chain<M>
): <S, A, B>(ma: StateT<M, S, A>, f: (a: A) => StateT<M, S, B>) => StateT<M, S, B> {
Expand Down

0 comments on commit 4b43d6a

Please sign in to comment.