Input validation using Haskell | Dark Hacker News