mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 00:21:13 +00:00
Add haskell module
This module provides support for per user haskell packages by prepending the per user directories to PATH/MANPATH.
This commit is contained in:
parent
84a6c19c2b
commit
235cef787e
28
modules/haskell/README.md
Normal file
28
modules/haskell/README.md
Normal file
@ -0,0 +1,28 @@
|
||||
Haskell
|
||||
=======
|
||||
|
||||
Enables local Haskell package installation.
|
||||
|
||||
Per-user Package Installation
|
||||
-----------------------------
|
||||
|
||||
[Cabal][1], the Haskell package manager, can install packages into per user
|
||||
directories.
|
||||
|
||||
This module prepends per user directories to the relevant path variables to
|
||||
enable the execution of user installed executables and the reading of
|
||||
documentation.
|
||||
|
||||
### Usage
|
||||
|
||||
Install packages into per user directories with `cabal install --user`.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the GitHub issue tracker.*
|
||||
|
||||
- [Sebastian Wiesner](/lunaryorn)
|
||||
|
||||
[1]: http://www.haskell.org/cabal/
|
||||
|
16
modules/haskell/init.zsh
Normal file
16
modules/haskell/init.zsh
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user