seasonedcc / development-of-composable-functions

Types and functions to make composition easy and safe
MIT License
1 stars 0 forks source link

unify composition type errors #27

Closed diogob closed 6 months ago

diogob commented 6 months ago

This should improve readability for complex types that have to validate composition.

It also eliminates the redundancy of two types used to represent composition failure, using only a new version of FailToCompose.

Reuse the IncompatibleArguments just to test for errors.