online advertising

Tuesday, June 2, 2015

Haskell 99 Problem 2


Please find the problem here.


Please see the solution as follow:

The more one code with Haskell, the more one simply hate error conditions. The same idea apply from the last problem, but in this case we have to use Either a b instead of Maybe a to communicate more than 1 error conditions. The rest follow the same pattern pretty much.

No comments :

Post a Comment