diff --git a/modules/haskell/init.zsh b/modules/haskell/init.zsh index da8cd39d..8690ce18 100644 --- a/modules/haskell/init.zsh +++ b/modules/haskell/init.zsh @@ -11,11 +11,10 @@ if (( ! $+commands[ghc] )); then fi # Prepend Cabal per user directories to PATH/MANPATH. -if [[ "$OSTYPE" == darwin* ]]; then +if [[ "$OSTYPE" == darwin* && -d $HOME/Library/Haskell ]]; then path=($HOME/Library/Haskell/bin(/N) $path) manpath=($HOME/Library/Haskell/man(/N) $manpath) else path=($HOME/.cabal/bin(/N) $path) manpath=($HOME/.cabal/man(/N) $manpath) fi -