Skip to content

Commit

Permalink
import overloadings whenever there is a Ops class
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Jul 15, 2017
1 parent 260ab3a commit 69a8e5a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/EitherT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Either, URI as URIEither } from './Either'
import * as either from './Either'
import { Option } from './Option'
import { Applicative } from './Applicative'
import './overloadings'

export interface EitherT<M> extends ApplicativeComposition<M, URIEither> {
chain<L, A, B>(f: (a: A) => HKT<M, Either<L, B>>, fa: HKT<M, Either<L, A>>): HKT<M, Either<L, B>>
Expand Down
1 change: 1 addition & 0 deletions src/Filterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Functor } from './Functor'
import { Either, fromPredicate, left, right } from './Either'
import { Option, fromPredicate as optionFromPredicate } from './Option'
import { Predicate, identity } from './function'
import './overloadings'

export interface Filterable<F> extends Functor<F> {
/** partition a data structure based on an either predicate */
Expand Down
1 change: 1 addition & 0 deletions src/Free.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { HKT } from './HKT'
import { FantasyMonad, Monad } from './Monad'
import { NaturalTransformation } from './NaturalTransformation'
import { toString } from './function'
import './overloadings'

export const URI = 'Free'

Expand Down
1 change: 1 addition & 0 deletions src/OptionT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Applicative, getApplicativeComposition, ApplicativeComposition } from '
import { Option, URI as OptionURI } from './Option'
import * as option from './Option'
import { Lazy } from './function'
import './overloadings'

export interface OptionT<M> extends ApplicativeComposition<M, OptionURI> {
chain<A, B>(f: (a: A) => HKT<M, Option<B>>, fa: HKT<M, Option<A>>): HKT<M, Option<B>>
Expand Down
1 change: 1 addition & 0 deletions src/ReaderT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Applicative } from './Applicative'
import { Chain } from './Chain'
import { Monad } from './Monad'
import { Kleisli } from './function'
import './overloadings'

export interface ReaderT<M> {
map<E, A, B>(f: (a: A) => B, fa: Kleisli<M, E, A>): Kleisli<M, E, B>
Expand Down
1 change: 1 addition & 0 deletions src/StateT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Applicative } from './Applicative'
import { Chain } from './Chain'
import { Monad } from './Monad'
import { Kleisli, Endomorphism, tuple } from './function'
import './overloadings'

export interface StateT<M> {
map<S, A, B>(f: (a: A) => B, fa: Kleisli<M, S, [A, S]>): Kleisli<M, S, [B, S]>
Expand Down
1 change: 1 addition & 0 deletions src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HKT } from './HKT'
import { Comonad, FantasyComonad } from './Comonad'
import { Functor } from './Functor'
import { Endomorphism, toString } from './function'
import './overloadings'

export const URI = 'Store'

Expand Down
1 change: 1 addition & 0 deletions src/StrMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { liftA2 } from './Apply'
import { Setoid } from './Setoid'
import { Option, none, some } from './Option'
import { Unfoldable } from './Unfoldable'
import './overloadings'

// https://github.com/purescript/purescript-maps

Expand Down
1 change: 1 addition & 0 deletions src/These.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Option, none, some } from './Option'
import { Setoid } from './Setoid'
import { Semigroup } from './Semigroup'
import { constFalse, toString } from './function'
import './overloadings'

// Data type isomorphic to `α ∨ β ∨ (α ∧ β)`
// adapted from https://github.com/purescript-contrib/purescript-these
Expand Down
1 change: 1 addition & 0 deletions src/Witherable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Filterable } from './Filterable'
import { Applicative } from './Applicative'
import { Either, left, right } from './Either'
import { Option } from './Option'
import './overloadings'

export type Wilt<T, L, R> = {
left: HKT<T, L>
Expand Down

0 comments on commit 69a8e5a

Please sign in to comment.