Realized I could use the applicative functor pattern to combine the two effects