1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-01 06:11:12 +00:00
prezto/modules/haskell/init.zsh

22 lines
474 B
Bash
Raw Permalink Normal View History

#
# Enables local Haskell package installation.
#
# Authors:
# Sebastian Wiesner <lunaryorn@googlemail.com>
#
2012-07-23 19:00:44 +00:00
# Return if requirements are not found.
if (( ! $+commands[ghc] )); then
return 1
fi
# Prepend Cabal per user directories to PATH/MANPATH.
if [[ "$OSTYPE" == darwin* ]]; then
path=($HOME/Library/Haskell/bin(/N) $path)
manpath=($HOME/Library/Haskell/man(/N) $manpath)
else
path=($HOME/.cabal/bin(/N) $path)
2012-09-20 12:34:22 +00:00
manpath=($HOME/.cabal/man(/N) $manpath)
fi