LoginSignup
5
5

More than 5 years have passed since last update.

stack を Haskell ツールのインストーラとして使う

Posted at

Haskell プロジェクトのライブラリ管理に便利な stack ですが、gcc-mod や hoogle などコマンドラインツールのインストーラとしても使えます。

(まだ入れてなければ)stack のインストール

brew install haskell-stack

好きなツールのインストール

stack install ghc-mod

更新

しばらく使っていると、新しいバージョンが出て更新したくなるかもしれません。そういう時は global resolver を更新して stack install し直します。

~/.stack/global/stack.yaml の中の resolver のバージョンを書き換えるだけです。その後 stack install foo とすると、新しい resolver でインストールできます。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5