Solving a wooden puzzle using Haskell | Hacker News Reader