An extension to the core typescript library inspired scalaz