38
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacでHaskellを始める

Last updated at Posted at 2018-08-17

こちらを参考に

brew cask install haskell-platform

すると、

Cask 'haskell-platform' is unavailable: No Cask with this name exists.

そんなものはないと言われる。

cask 抜きで brew install すると、

brew install haskell-platform
Error: No available formula with the name "haskell-platform"
We no longer package haskell-platform. Consider installing ghc,
cabal-install and stack instead:
  brew install ghc cabal-install stack

brew install ghc cabal-install stack じゃない? と言われたので、

brew install ghc cabal-install stack

Haskell環境をインストールできた。

ghci
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
Prelude>

ghci で対話式コンソールを起動できる。

追記

コメントでstackの方が良いと教えて頂いたのでその場合。

brew install stack
stack setup
stack path

ここまで完了したら、stack exec ghci もしくは stack ghci でREPLを開ける。

stack exec ghci
GHCi, version 8.6.3: http://www.haskell.org/ghc/  :? for help
Prelude>
38
14
1

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
38
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?