8
6

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.

XCodeでHaskellを試す

Posted at

XCodeでHaskellを編集、実行できないか試してみました。

1 新規プロジェクトはOS X/Other/External Build System
2 BuildToolは/usr/bin/ghcみたいにghcのパスを設定
3 ファイルはemptyファイルからhello.hsとなづけて作成
  例 main = putStrLn "Hello"
4 プロジェクトファイルのTargetsでターゲットを指定しInfoタブの
  Argumentsをhello.hsにする。
5 一度実行する。(helloができる)
6 Edit SchemeのInfoでExecutableをhelloに指定する。

実行するとhelloがログとして表示されると思います。

8
6
2

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
8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?