My "~/.stack" directory is taking up 2.5GB and has the following main big directories :

1330    programs/
877     indices/
264     snapshots/

What is this "~/.stack" directory ?

Can I safely remove the biggest files in it ?

  • 2
    This directory seems to belong to haskell stack. It is up to you to decide if you still need it. No one else can tell you.
    – Thomas
    Oct 6, 2018 at 12:36

1 Answer 1


From https://docs.haskellstack.org/en/stable/GUIDE/

The stack root directory holds packages belonging to snapshots and any stack-installed versions of GHC.

You can safely remove any or all of it, but some of it might get replaced the next time you build Haskell programs using stack. I'm surprised and somewhat annoyed by how big my ~/.stack directory is too.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .