raulraja
02/06/2018, 10:11 PME
. Alternatively you can flip nested type constructors if they provide an Applicative
instance with traverse
or sequence
. In this case the solution below is in my opinion a better fit because you are not forced to use Option
and consequently loosing error information by coallescing E
into `None`: