1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-07-03 11:10:28 +00:00
prezto/modules/haskell/init.zsh
2012-08-04 14:32:59 -04:00

22 lines
471 B
Bash

#
# Enables local Haskell package installation.
#
# Authors:
# Sebastian Wiesner <lunaryorn@googlemail.com>
#
# 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)
manpath=($HOME/.cabal/man(/N) $path)
fi