Your SlideShare is downloading. ×
Virthualenvwrapper
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Virthualenvwrapper

1,586
views

Published on


1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
1,586
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
1
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Virthualenvwrapper 三島Haskell無名関数の会#2 @kzfm
  • 2. へびちゅうにゅう∼h"p://www.flickr.com/photos/56879816@N00/187827715
  • 3. VirthualenvはPythonのvirtualenv インスパイア (知ってるよね?)
  • 4. Pythonにはvirtualenvwrapperがあるよ! (virtualenvを快適に使える)
  • 5. 快適すぎるので Haskellでもつくった(virthualenvwrapper)
  • 6. 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
  • 7. make new env$ mkvhenv testenv Use 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:~ $
  • 8. switch env$ deactivate Deactivating testenv Virtual Haskell Environment (at /Users/kzfm/.virthualenv/testenv). Restoring previous environment settings. localhost@kzfm:~ $ workhon yesod Activating 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:~ $
  • 9. list all env$ lsvirthualenv curl optparse snap testenv yesod
  • 10. おしまい