[Haskell-cafe] Implementing parental using blood type

Rafael Almeida almeidaraf at gmail.com
Sun Jun 29 02:16:31 UTC 2014


I'm trying to practice my Haskell. So I had the idea of making a program
which, given a mother's and a child blood type, it can determine whether a
certain father is possible or not.

Please take a look on this gist with my implementation:


Would you care to comment on it? It looks a bit cumbersome to my eyes. I'm
trying to find the most intuitive and elegant way of do it. I'm not so much
worried with performance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140628/2801c3ba/attachment.html>

More information about the Haskell-Cafe mailing list