[Haskell] behavioral difference between GHC and GHCi