Frequently Asked Questions
Table of contents
- Data Types
- Where do I find …?
How can I handle errors with Tasks?
Not every async computation necessarily needs error handling, which is why Task is simply defined as
Task<A>. If you do need to handle errors, you can use TaskEither or variations of
Where do I find …?
Where do I find the Maybe data type?
fp-ts provides the Option data type, which is conceptually similar to the
Maybe data type.
Where do I find the liftA2, liftA3, … functions?
Is it possible to serialize and deserialize an
Yes, you can create an io-ts encoder/decoder for sending/receiving a data type like Option or Either over a network or exchange data with a web worker. Check out the functions
createEitherFromJSON from io-ts-types for this use-case.
Is it possible to use tagless final with
fp-ts provide Flow type definitions?
fp-ts does not provide official Flow type definitions.