This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/haskell/init.zsh

22 lines
471 B
Bash
Raw Normal View History

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