mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
d5bef142d4
PR #1793 introduced helper functions for OS detection in some modules. These helpers require a module dependency on the 'helper' module.
22 lines
430 B
Bash
22 lines
430 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
|
|
|
|
# Load dependencies.
|
|
pmodload 'helper'
|
|
|
|
# Prepend Cabal per user directories to PATH.
|
|
if is-darwin && [[ -d $HOME/Library/Haskell ]]; then
|
|
path=($HOME/Library/Haskell/bin(/N) $path)
|
|
else
|
|
path=($HOME/.cabal/bin(/N) $path)
|
|
fi
|