Playing actual music over fp-ts
notes
fortepiano
provides a set of common abstractions for functional application development (e.g., Http
, Storage
...), while extending fp-ts
with useful modules à la fp-ts-contrib
.
fortepiano
stands on the shoulders of the giant fp-ts
. As such, a good understanding of its concepts is suggested.
The package is available via npm, and must be installed along with its peer dependencies:
npm install fortepiano fp-ts io-ts io-ts-types
Additional packages are required, shall you want to use specific abstractions:
memcached
and@types/memcached
(cache/Memcached
)redis
and@types/redis
(cache/Redis
)axios
(http/Axios
)@slynova/flydrive
(storage/Flydrive
)
Import modules (e.g., values) from package index and types from specific modules. "Function" module and abstraction implementations are an exception:
import { $type } from 'fortepiano'
import { Struct } from 'fortepiano/struct'
import { curry } from 'fortepiano/function'
import { $axios } from 'fortepiano/http/Axios'
See the CONTRIBUTING.md file for details.
This project is licensed under the MIT License. See the LICENSE.md file for details.