Skip to content

Commit

Permalink
Promotes previously experimental APIs to stable
Browse files Browse the repository at this point in the history
Future, Conversions, Lambda, Fantasy-Land, Result, and Validation modules are now considered stable.

Task still needs some work to reach that state (see #178)
  • Loading branch information
robotlolita committed Aug 13, 2018
1 parent b629a6c commit 69e3bc5
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion packages/base/source/concurrency/future/_deferred.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const moveToState = (deferred, newState) => {

// --[ Implementation ]------------------------------------------------
/*~
* stability: experimental
* stability: stable
*/
function Deferred() {
define(this, '_state', Pending());
Expand Down
28 changes: 14 additions & 14 deletions packages/base/source/concurrency/future/_future.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const warnDeprecation = require('folktale/helpers/warn-deprecation');
// --[ Implementation ]------------------------------------------------

/*~
* stability: experimental
* stability: stable
*/
class Future {
constructor() {
Expand Down Expand Up @@ -50,7 +50,7 @@ class Future {

// ---[ Reacting to Future events ]----------------------------------
/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(DeferredListener 'f 's) => Future 'f 's
*/
Expand All @@ -67,7 +67,7 @@ class Future {

// --[ Transforming Futures ]----------------------------------------
/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(('s) => Future 's2) => Future 'f 's2
*/
Expand All @@ -89,7 +89,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(('s) => 's2) => Future 'f 's2
*/
Expand All @@ -98,7 +98,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(Future 'f (('s) => 's2)) => Future 'f 's2
*/
Expand All @@ -107,7 +107,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(('f) => 'f2, ('s) => 's2) => Future 'f2 's2
*/
Expand All @@ -123,7 +123,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(('f) => 'f2) => Future 'f2 's
*/
Expand All @@ -147,7 +147,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).(('f) => Future 'f2 's2) => Future 'f2 's
*/
Expand All @@ -170,7 +170,7 @@ class Future {


/*~
* stability: experimental
* stability: stable
* type: |
* forall a, b, c, d:
* type Pattern = { r |
Expand Down Expand Up @@ -198,7 +198,7 @@ class Future {
}

/*~
* stability: experimental
* stability: stable
* type: |
* (Future 'f 's).() => Future 's 'f
*/
Expand Down Expand Up @@ -238,7 +238,7 @@ class Future {


/*~
* stability: experimental
* stability: stable
* type: |
* forall e, v:
* (Future e v).() => Promise v e
Expand All @@ -252,7 +252,7 @@ class Future {
// ---[ Constructing futures ]-----------------------------------------
Object.assign(Future, {
/*~
* stability: experimental
* stability: stable
* type: |
* forall a, b:
* (Future).(b) => Future a b
Expand All @@ -264,7 +264,7 @@ Object.assign(Future, {
},

/*~
* stability: experimental
* stability: stable
* type: |
* forall a, b: (Future).(a) => Future a b
*/
Expand All @@ -276,7 +276,7 @@ Object.assign(Future, {


/*~
* stability: experimental
* stability: stable
* type: |
* forall e, v: (Promise v e) => Future e v
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/conversions/future-to-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { Cancelled } = require('folktale/concurrency/future/_execution-state');


/*~
* stability: experimental
* stability: stable
* type: |
* forall e, v:
* (Future e v) => Promise v e
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/conversions/promise-to-future.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { Cancelled } = require('folktale/concurrency/future/_execution-state');
const Deferred = require('folktale/concurrency/future/_deferred');

/*~
* stability: experimental
* stability: stable
* type: |
* forall e, v:
* (Promise v e) => Future e v
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/core/lambda/curry.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//----------------------------------------------------------------------

/*~
* stability: experimental
* stability: stable
* authors:
* - Quildreen Motta
*
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/core/lambda/partialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const hole = {};


/*~
* stability: experimental
* stability: stable
* authors:
* - Quildreen Motta
*
Expand Down Expand Up @@ -57,7 +57,7 @@ const partialize = (arity, fn) => (...args) => { // eslint-disable-line max-


// ---[ Special Values ]-----------------------------------------------
/*~ stability: experimental */
/*~ stability: stable */
partialize.hole = hole;


Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isNew = (a) => typeof a[flAlt] === 'function';
const isOld = (a) => typeof a.alt === 'function';

/*~
* stability: experimental
* stability: stable
* authors:
* - "@joshmili"
*
Expand All @@ -32,7 +32,7 @@ const alt = (aAlt, bAlt) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@joshmili"
*
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isNew = (a) => typeof a[ap] === 'function';
const isOld = (a) => typeof a.ap === 'function';

/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -33,7 +33,7 @@ const apply = (applicativeFunction, applicativeValue) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/bimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const isOld = (a) => typeof a.bimap === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -35,7 +35,7 @@ const bimap = (bifunctor, transformLeft, transformRight) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isOld = (a) => typeof a.chain === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -34,7 +34,7 @@ const chain = (monad, transformation) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isOldSemigroup = (a) => typeof a.concat === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -34,7 +34,7 @@ const concat = (semigroupLeft, semigroupRight) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/fantasy-land/curried.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


/*~
* stability: experimental
* stability: stable
* name: module folktale/fantasy-land/curried
*/
module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const isCtorOld = (a) => typeof a.constructor.empty === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -39,7 +39,7 @@ const empty = (monoid) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/equals.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const isOld = (a) => typeof a.equals === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -35,7 +35,7 @@ const equals = (setoidLeft, setoidRight) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/fantasy-land/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//----------------------------------------------------------------------

/*~
* stability: experimental
* stability: stable
* name: module folktale/fantasy-land
*/
module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isNew = (a) => typeof a[flMap] === 'function';
const isOld = (a) => typeof a.map === 'function';

/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -34,7 +34,7 @@ const map = (functor, transformation) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
4 changes: 2 additions & 2 deletions packages/base/source/fantasy-land/of.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const isCtorOld = (a) => typeof a.constructor.of === 'function';


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand All @@ -39,7 +39,7 @@ const of = (applicative, value) =>


/*~
* stability: experimental
* stability: stable
* authors:
* - "@boris-marinov"
* - Quildreen Motta
Expand Down
6 changes: 3 additions & 3 deletions packages/base/source/maybe/maybe.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ adtMethods(Maybe, {
},

/*~
* stability: experimental
* stability: stable
* type: |
* forall a: (Maybe a).((a) => Boolean) => Maybe a
*/
Expand Down Expand Up @@ -321,7 +321,7 @@ Object.assign(Maybe, {


/*~
* stability: experimental
* stability: stable
* type: |
* forall a, b: (Maybe a).(b) => Result b a
*/
Expand All @@ -330,7 +330,7 @@ Object.assign(Maybe, {
},

/*~
* stability: experimental
* stability: stable
* type: |
* forall a, b: (Maybe a).(b) => Result b a
*/
Expand Down
Loading

0 comments on commit 69e3bc5

Please sign in to comment.