UNPKG

@typed/effects

Version:

Generator-powered Effect management

6 lines (4 loc) 203 B
import { Env, withEnv } from '@typed/env' import { id } from '@typed/lambda' import { Effect } from '../Effect' export const get = <A>(): Effect<Env<A, A>, A> => Effect.fromEnv<A, A>(withEnv<A, A>(id))