@sweet-monads/interfaces
Advanced tools
Comparing version 0.0.4 to 1.0.0
export interface Functor<T> { | ||
map<R>(f: (a: T) => R): Functor<R>; | ||
asyncMap<R>(f: (a: T) => Promise<R>): Promise<Functor<R>>; | ||
} |
@@ -1,5 +0,9 @@ | ||
import { Functor } from "./functor"; | ||
export interface Monad<T> extends Functor<T> { | ||
chain<B>(f: (a: T) => Monad<B>): Monad<B>; | ||
asyncChain<B>(f: (a: T) => Promise<Monad<B>>): Promise<Monad<B>>; | ||
import { Applicative, ApplicativeConstructor } from "./applicative"; | ||
export interface Monad<T> extends Applicative<T> { | ||
chain<B>(f: (a: T) => Monad<B>): Monad<B>; | ||
} | ||
export interface MonadConstructor extends ApplicativeConstructor { | ||
from<I>(item: I): Monad<I>; | ||
} |
{ | ||
"name": "@sweet-monads/interfaces", | ||
"version": "0.0.4", | ||
"version": "1.0.0", | ||
"description": "Monad interfaces", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6442
7
19
1
0
179