Overview of fp-ts modules
masterThe index.ts module serves as the primary entry point for fp-ts, organizing the library into several key categories:
- Data Types: Concrete implementations of functional structures like
array,either,option,task,reader, and more. - Models: Algebraic structures and type class implementations (e.g.,
functor,monad,applicative,semigroup) that define how data types behave. - Monad Transformers: Specialized wrappers for combining effects, such as
eitherT,optionT, andtaskE. - Utils: General purpose utility functions for
boolean,date,json,string, and other primitives.
This structure allows developers to compose complex functional programs by selecting the appropriate data types and applying mathematical models to them.