Skip to content

Commit

Permalink
Move src/dispatchers.js to src/dispatchers/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaq committed Jul 31, 2018
1 parent 77963b5 commit 52b2ad8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions index.mjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {throwInvalidArgument} from './src/internal/throw';
import {Future, of, reject, never} from './src/future';
import {FL} from './src/internal/const';
import {chainRec} from './src/chain-rec';
import {ap, map, bimap, chain, race, alt} from './src/dispatchers';
import {ap, map, bimap, chain, race, alt} from './src/dispatchers/index';

Future.of = Future[FL.of] = of;
Future.chainRec = Future[FL.chainRec] = chainRec;
Expand Down Expand Up @@ -32,7 +32,7 @@ function seq(par){

export {Future, Future as default, Par, isParallel, seq};
export {isFuture, reject, of, never, isNever} from './src/future';
export * from './src/dispatchers';
export * from './src/dispatchers/index';
export {after, rejectAfter} from './src/after';
export {attempt, attempt as try} from './src/attempt';
export {cache} from './src/cache';
Expand Down
26 changes: 0 additions & 26 deletions src/dispatchers.js

This file was deleted.

26 changes: 26 additions & 0 deletions src/dispatchers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export {ap} from './ap';
export {alt} from './alt';
export {map} from './map';
export {bimap} from './bimap';
export {chain} from './chain';

export {mapRej} from './map-rej';
export {chainRej} from './chain-rej';
export {lastly, lastly as finally} from './lastly';

export {and} from './and';
export {both} from './both';
export {or} from './or';
export {race} from './race';

export {swap} from './swap';
export {fold} from './fold';

export {done} from './done';
export {fork} from './fork';
export {forkCatch} from './fork-catch';
export {promise} from './promise';
export {value} from './value';

export {extractLeft} from './extract-left';
export {extractRight} from './extract-right';

0 comments on commit 52b2ad8

Please sign in to comment.