virthualenvwrapper

10

Click here to load reader

Upload: kazufumi-ohkawa

Post on 10-May-2015

1.644 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Virthualenvwrapper

Virthualenvwrapper

三島Haskell無名関数の会#2 @kzfm

Page 2: Virthualenvwrapper

へびちゅうにゅう~

h"p://www.flickr.com/photos/56879816@N00/187827715

Page 3: Virthualenvwrapper

Virthualenvは Pythonのvirtualenv

インスパイア (知ってるよね?)

Page 4: Virthualenvwrapper

Pythonには virtualenvwrapperがあるよ! (virtualenvを快適に使える)

Page 5: Virthualenvwrapper

快適すぎるので Haskellでもつくった

(virthualenvwrapper)

Page 6: 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

Page 7: Virthualenvwrapper

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:~ $

Page 8: Virthualenvwrapper

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:~ $

Page 9: Virthualenvwrapper

list all env

$ lsvirthualenvcurloptparsesnaptestenvyesod

Page 10: Virthualenvwrapper

おしまい