virthualenvwrapper
TRANSCRIPT
Virthualenvwrapper
三島Haskell無名関数の会#2 @kzfm
へびちゅうにゅう~
h"p://www.flickr.com/photos/56879816@N00/187827715
Virthualenvは Pythonのvirtualenv
インスパイア (知ってるよね?)
Pythonには virtualenvwrapperがあるよ! (virtualenvを快適に使える)
快適すぎるので Haskellでもつくった
(virthualenvwrapper)
install from Github
$ git://github.com/kzfm/virthualenvwrapper.git$ cd virthualenvwrapper$ cabal install
# add to .bashrc $ echo “source $HOME/Library/Haskell/ghc-7.4.2/lib/\virthualenvwrapper-0.1.0.0/share/virthualenvwrapper.sh”\>> ~/.bashrc$ source ~/.bashrc
make new env
$ mkvhenv testenvUse regular Haskell tools (ghc, ghci, ghc-pkg, cabal)\ to manage your Haskell environment.
To exit from this virtual environment, enter command 'deactivate'.(testenv)localhost@kzfm:~ $
switch env
$ deactivateDeactivating testenv Virtual Haskell Environment\ (at /Users/kzfm/.virthualenv/testenv).Restoring previous environment settings.localhost@kzfm:~ $ workhon yesodActivating yesod Virtual Haskell Environment\ (at /Users/kzfm/.virthualenv/yesod).
Use regular Haskell tools (ghc, ghci, ghc-pkg, cabal)\ to manage your Haskell environment.
To exit from this virtual environment, enter command 'deactivate'.(yesod)localhost@kzfm:~ $
list all env
$ lsvirthualenvcurloptparsesnaptestenvyesod
おしまい