File size calculation in Haskell

Now that was a very simple "challenge".