prezto/modules/haskell/init.zsh
Sebastian Wiesner 235cef787e Add haskell module
This module provides support for per user haskell packages by prepending
the per user directories to PATH/MANPATH.
2012-05-19 11:53:36 -04:00

17 lines
383 B
Bash

#
# Enables local Haskell package installation.
#
# Authors:
# Sebastian Wiesner <lunaryorn@googlemail.com>
#
# 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