powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

`haskell_stack` is slow and has unwanted side effects

Open andreasabel opened this issue 5 months ago • 0 comments

I'd say the haskell_stack gimmick, while nicely displaying the ghc version if I am in a directory with stack.yaml, does a bit too much.

  1. It is slow. When I change to a directory that has a stack.yaml, I am waiting a couple of seconds before my prompt appears. The reason is that stack is slow, it does all kind of stuff before it gives the desired answer.
  2. One of these things stack is doing creating a .cabal file from a package.yaml file (using its internal version of hpack). This seems a bit too much. I do not want my shell prompt to create new files. I just want it to display information.

So my advice would be to switch this feature off until it gets fixed.

https://github.com/romkatv/powerlevel10k/blob/36f3045d69d1ba402db09d09eb12b42eebe0fa3b/internal/p10k.zsh#L5700-L5714

Upstream issue:

  • https://github.com/commercialhaskell/stack/issues/6780

andreasabel avatar Aug 07 '25 14:08 andreasabel