haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 210 forks source link

Excessive disk space usage #1491

Open theOperand opened 4 years ago

theOperand commented 4 years ago

When installing HIE from the AUR on Arch Linux, the build process generates many build artifacts that are not included in the package in the ~/.stack directory.

Even when HIE is installed only for the system's own GHC version, the directory is almost 5 GB in size, which includes two seemingly redundant copies of GHC (the same verison of GHC as I already have installed) and a sqlite database which is itself over 700 megabytes in size.

This makes this package one of the largest packages on my system and makes it difficult to justify using HIE, as I only have 256 GB of storage (not an unusual amount now that many laptops come with only an SSD), not all of which is available to Arch because of my Windows dual-boot, and I imagine I am far from the only one in a situation like this.

Would it be possible to use the system-provided GHC, or at least prune some of this disk space after building the package?

lukel97 commented 4 years ago

It's possible to install hie with just cabal install, which might be a bit leaner on disk space since it doesn't download another version of GHC and uses the system GHC.

fendor commented 4 years ago

Also, when #1068 is implemented, it should be possible to not have compiler artifacts on the system. But I dont expect this to be implemented in the next release unless someone pushes it. However, maybe it will be implemented in the relase after that.