ghcid icon indicating copy to clipboard operation
ghcid copied to clipboard

Pass -fno-it on GHC 8.6

Open ndmitchell opened this issue 7 years ago • 5 comments

See https://ghc.haskell.org/trac/ghc/ticket/14336, which should allow for smaller memory leaks.

ndmitchell avatar Jan 21 '18 17:01 ndmitchell

Note that this requires dynamically detecting the GHC version. which might be tricky... Looking for the initial GHC version ... line is probably easiest.

ndmitchell avatar Jan 21 '18 17:01 ndmitchell

Not harmful on earlier GHC's to pass and forget.

ndmitchell avatar Feb 04 '18 21:02 ndmitchell

I undid the fix due to GHC bugs

ndmitchell avatar Feb 04 '18 23:02 ndmitchell

Still relevant?

fosskers avatar Feb 05 '20 01:02 fosskers

Yes. GHC introduced -no-it which reduces memory usage in Ghci, which would be great. It's available from GHC 8.6 and above. Unfortunately, this flag also turns on the behaviour of printing out lots of spurious () values. Ghcid isn't expecting those, and gets upset. Because GHC 8.6 has those spurious () values the options are 1) never use -no-it, 2) cope with (), 3) patch GHC to not print out the spurious () and wait a decade until Ghcid no longer supports the last version which prints them. Of those, only 2 seems feasible, but I haven't done the work for it.

ndmitchell avatar Feb 07 '20 11:02 ndmitchell