Options
All
  • Public
  • Public/Protected
  • All
Menu

Type class instances provided by default for IO.

Hierarchy

  • IOInstances

Implements

Index

Properties

Static global

global: IOInstances = new IOInstances()

Methods

ap

  • ap<A, B>(fa: IOK<A>, ff: IOK<function>): IO<B>

attempt

  • attempt<A>(fa: IOK<A>): IO<Either<Throwable, A>>
  • Type parameters

    • A

    Parameters

    Returns IO<Either<Throwable, A>>

coflatMap

  • coflatMap<A, B>(fa: IOK<A>, ff: function): IO<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: IOK<A>
    • ff: function
        • (a: IOK<A>): B
        • Parameters

          Returns B

    Returns IO<B>

coflatten

  • coflatten<A>(fa: IOK<A>): IO<IO<A>>

flatMap

  • flatMap<A, B>(fa: IOK<A>, f: function): IO<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: IOK<A>
    • f: function
        • (a: A): IOK<B>
        • Parameters

          • a: A

          Returns IOK<B>

    Returns IO<B>

followedBy

  • followedBy<A, B>(fa: IOK<A>, fb: IOK<B>): IO<B>

followedByL

  • followedByL<A, B>(fa: IOK<A>, fb: function): IO<B>

forEffect

  • forEffect<A, B>(fa: IOK<A>, fb: IOK<B>): IO<A>

forEffectL

  • forEffectL<A, B>(fa: IOK<A>, fb: function): IO<A>

map

  • map<A, B>(fa: IOK<A>, f: function): IO<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: IOK<A>
    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns IO<B>

map2

  • map2<A, B, Z>(fa: IOK<A>, fb: IOK<B>, f: function): IO<Z>
  • Type parameters

    • A

    • B

    • Z

    Parameters

    • fa: IOK<A>
    • fb: IOK<B>
    • f: function
        • (a: A, b: B): Z
        • Parameters

          • a: A
          • b: B

          Returns Z

    Returns IO<Z>

product

  • product<A, B>(fa: IOK<A>, fb: IOK<B>): IO<[A, B]>

pure

  • pure<A>(a: A): IO<A>

raise

  • raise<A>(e: Throwable): IO<A>
  • Type parameters

    • A

    Parameters

    • e: Throwable

    Returns IO<A>

recover

  • recover<A>(fa: IOK<A>, f: function): IO<A>
  • Type parameters

    • A

    Parameters

    • fa: IOK<A>
    • f: function
        • (e: Throwable): A
        • Parameters

          • e: Throwable

          Returns A

    Returns IO<A>

recoverWith

  • recoverWith<A>(fa: IOK<A>, f: function): IO<A>
  • Type parameters

    • A

    Parameters

    • fa: IOK<A>
    • f: function
        • (e: Throwable): IOK<A>
        • Parameters

          • e: Throwable

          Returns IOK<A>

    Returns IO<A>

tailRecM

  • tailRecM<A, B>(a: A, f: function): IO<B>
  • Type parameters

    • A

    • B

    Parameters

    • a: A
    • f: function
        • (a: A): IOK<Either<A, B>>
        • Parameters

          • a: A

          Returns IOK<Either<A, B>>

    Returns IO<B>

unit

  • unit(): IO<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc