Make ghc compilation deterministic #769893

ghc bug tracker: https://ghc.haskell.org/trac/ghc/ticket/8144
patch from: https://github.com/nh2/ghc/commit/3d61ee6c3e79913de2400aba8cecde8dbf44fc67