Alex Rivera | Logout

Is there a built in way of converting Option to a scalaz validation?

Asked 2012-01-19T17:03:53.683
10

I've been looking but I can't find an implicit converter. Obviously it would be trivial to write one but I'm wondering if I've missed one in the scalaz library somehow!

Edit
Report

1 Answer

12

Scalaz has a implicit conversion of Option to OptionW, which declares the toFailure and toSuccess methods.

answered 2012-01-19T17:09:01.740

Your Answer