Category "fp-ts"

Dealing With Assertions in Functional Code

While doing functional programming I often end up in situations where I know something that the type system of the language does not know. Consider the followin

Refactoring after deprecation of getFoldableComposition, option, array et al

I spent some time last year trying to learn fp-ts. I've finally come around to using it in a project and a lot of my sample code has broken due to the recent re

How to handle "else if" in fp-ts

A lot of times I notice I am struggling how to implement a pretty simple flow chart with multiple if-else conditions. This example looks too verbose and is not