Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell...

12
Haskell環境構築 Windows田中英行 [email protected] 0回スタートHaskell 2011/07/24

Transcript of Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell...

Page 1: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

Haskell環境構築 Windows編

田中英行

[email protected]

第0回スタートHaskell 2011/07/24

Page 2: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

WindowsでのHaskell処理系

• GHC+よく使うパッケージ

• Haskell Platform

• これさえあればOK!

Page 3: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

Haskell Platformをインストール

• http://hackage.haskell.org/platform/

ここ

Page 4: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

Haskell Platform for Windows

• http://hackage.haskell.org/platform/windows.html

これ

Page 5: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

インストール

• インストーラをダブルクリック

ダブルクリック!!

Page 6: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

インストール

• Nextを押していく

ここ

Page 7: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

コマンドラインから起動

Page 8: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

cabal-installを試す

Page 9: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

オプション

• Cのライブラリに依存するパッケージを入れたい場合

– MinGW & MSYS (おすすめ)

• http://www.mingw.org/

– Cygwin (オススメしない)

Page 10: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

エディタ

• ソースの記述にエディタが必要です

– Emacs for Win32 (NTEmacs)

• http://ntemacs.sourceforge.net/

• EmacsのHaskell-modeが使えるのでおすすめ

–その他お好みのもの

• Vim

• Eclipse + EclipseFP – http://eclipsefp.sourceforge.net/

Page 11: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

Haskell-mode for Emacs

• Haskell mode

– http://projects.haskell.org/haskellmode-emacs/

–新しいバージョンでインデントが大きく改善されているので、必ず最新版を!

Page 12: Haskell環境構築 - tanakhtanakh.jp/pub/start-haskell-0-env.pdf · Welcome to the Haskell Platform 201 1 Setup Wizard This wizard will guide you through the installation ofHaskeI

Haskell-mode for Emacs

• インストール

– C:¥Users¥<ユーザ名>¥AppData¥Roaming¥.emacs.d

• に置く

– C:¥Users¥<ユーザ名>¥AppData¥Roaming¥.emacs

• に書き足す