[Haskell] Should the following program be accepted by ghc?