Input validation using Haskell | Hacker News Reader