Skip to content
Fluture type definitions for Sanctuary
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
test
.gitignore
.npmrc
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
index.d.ts
index.js
package.json
rollup.config.js

README.md

fluture-sanctuary-types

Fluture type definitions for Sanctuary.

$ npm install --save fluture sanctuary-def fluture-sanctuary-types

Usage

import $ = from 'sanctuary-def';
import {env} from 'fluture-sanctuary-types';

const def = $.create ({checkTypes: true, env: $.env.concat (env)});

FutureType :: Type -⁠> Type -⁠> Type

The binary type constructor for members of Future.

> $.test (env) (FutureType ($.String) ($.Number)) (Future.of (1));
true

ConcurrentFutureType :: Type -⁠> Type -⁠> Type

The binary type constructor for members of ConcurrentFuture.

> $.test
.   (env)
.   (ConcurrentFutureType ($.String) ($.Number))
.   (Future.Par.of (1));
true

env :: Array Type

An Array containing all types applied to $.Unknown for direct use as a Sanctuary environment, as shown in Usage.

You can’t perform that action at this time.