<div dir="ltr"><div><div><div>Hello Ben,<br><br></div>We were trying to get `record` working on ghc-8 when we observed this issue. Nikita has kindly merged in our pull request which makes `record` now work on ghc-8. These were the steps we followed to reproduce the issue with cabal<br><br>|23:52:40| ~/ghc-8-TH :git clone <a href="https://github.com/nikita-volkov/base-prelude">https://github.com/nikita-volkov/base-prelude</a><br>Cloning into 'base-prelude'...<br>|23:53:03| ~/ghc-8-TH :git clone <a href="https://github.com/nikita-volkov/record">https://github.com/nikita-volkov/record</a><br>Cloning into 'record'...<br>|23:53:12| ~/ghc-8-TH :cd record <br>|23:53:15| ~/ghc-8-TH/record :cabal --version<br>cabal-install version 1.23.0.0<br>compiled using version 1.23.1.0 of the Cabal library <br>|23:53:19| ~/ghc-8-TH/record :ghc --version<br>The Glorious Glasgow Haskell Compilation System, version 8.0.0.20160411<br>|23:53:23| ~/ghc-8-TH/record :cabal sandbox init <br>Writing a default package environment file to<br>/home/sreenidhi/ghc-8-TH/record/cabal.sandbox.config<br>Creating a new sandbox at /home/sreenidhi/ghc-8-TH/record/.cabal-sandbox<br>|23:53:26| ~/ghc-8-TH/record :cabal sandbox add-source ../base-prelude <br>|23:53:34| ~/ghc-8-TH/record :cabal install --dependencies-only<br><br></div>now doing a `cabal build` takes about 2.8 g memory and took nearly 3 minutes to complete. After switching to ghc 7.10.3<br><br>|23:43:49| ~/ghc-8-TH/record :cabal --version<br>cabal-install version 1.22.9.0<br>using version 1.22.8.0 of the Cabal library<br>|0:01:05| ~/ghc-8-TH/record :ghc --version<br>The Glorious Glasgow Haskell Compilation System, version 7.10.3<br><br></div>`cabal build` took about 1.2g memory and completed in 1 minute 40 secs. When -O0 option was passed the memory consumed was about the same in both 8 and 7.10.3 but time taken was nearly double for 8. These measurements were roughly noted from `top` so may not be entirely accurate.<br><div><br></div><div>Please let me know if you need any further information.<br></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 21, 2016 at 8:34 PM, Ben Gamari <span dir="ltr"><<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Sreenidhi Nair <<a href="mailto:nair.sreenidhi@gmail.com">nair.sreenidhi@gmail.com</a>> writes:<br>
<br>
> Hello,<br>
><br>
> While compiling the `record` package with ghc-8 rc3 with `stack build`, the<br>
> memory usage went above 6gb and started trashing. But when `stack build<br>
> --fast` (-O0) was being used the package compiled with maximum memory at<br>
> 1.8gb.<br>
><br>
</span>Can you provide a reproduction case that does not rely on stack? As far<br>
as I can tell record has not been updated for GHC 8 (or even since 2015<br>
[1]).<br>
<br>
Cheers,<br>
<br>
- Ben<br>
<br>
<br>
[1] <a href="https://github.com/nikita-volkov/record" rel="noreferrer" target="_blank">https://github.com/nikita-volkov/record</a><br>
</blockquote></div><br></div>