[Haskell-beginners] can run in ghci but can't compile.