When doing a fresh install of Haskell Stack through the install script from here:
wget -qO- https://get.haskellstack.org/ | sh
Followed by:
stack setup
you will end up with a $HOME/.stack/
directory of 1.5 GB size (from just a 120+ MB download). Further if you run:
stack update
the size increases to 2.5 GB.
I am used to Java which is usually considered large/big (covers pretty much everything and has deprecated alternatives for backwards compatibility), but as a comparison: an IDE including a JDK, a stand alone JDK, and the JDK source is probably around 1.5 GB in size.
On the other hand, that Haskell which is a "small beautiful" language (from what I have heard and read, this is probably referring mostly to the syntax and semantics, but still), is that large/big, seems strange to me.
- Why is it so big (is it related to this question?)?
- Is this size normal or have I installed something extra?
- If there are several (4?, 5?) flavors of everything, then can I remove all but one?
- Are some of the data cache/temporary that can be removed?
- The largest directories are:
.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2
(1.3 GB) and.stack/indices/Hackage
(980 MB). I assume the first one are installed packages (and related tostack setup
) and the latter is some index over the Hackage package archive (and related tostack update
)? Can these be reduced (as above in 3 or grabbing needed Hackage information online)?