[Haskell] Re: Platform-dependent behaviour with functions on NaN