High memory usage during compilation
I'm building stack using GHC 8.0.2-rc2 and noticed store uses 5.17GB of (RSS) memory during https://github.com/fpco/store/blob/master/src/Data/Store/Internal.hs compilation step. Using GHC 8.0.1 memory goes up to only 1.6GB.
I haven't dug deeper, but something suspicious is going on.
You should be able to reproduce using installed Nix and executing nix-build -A haskell.packages.ghc802.store '<nixpkgs>' using recent channel.
Building haddock for store also goes up to 5.8GB.
It'd be great if someone is able to reproduce this using plan GHC 8.0.2-rc2
See also https://github.com/fpco/store/issues/91 for upstream bug report.