DEV Community

Discussion on: Getting started with fp-ts: Semigroup

Collapse
 
gcanti profile image
Giulio Canti

That's one of the possible Semigroup instances, which corresponds to the "computation failed" meaning of Option (so if you combine two computations and one of them fails the combination as a whole fails too). There are other possible instances though, see getFirstMonoid, getLastMonoid and getMonoid from the Option module

Collapse
 
eureka84 profile image
Angelo Sciarra

I see, thanks for the clarification!