1
0

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.

Haskellメモ

Posted at

コメント

単一行

-- コメント

複数行

{-
複数行での
コメント
-}

GHC

ソースファイルをコンパイルして実行する

mainを定義する必要あり。

$ ghc --make foo.hs

10.1. Using GHC — Glasgow Haskell Compiler 8.6.5 User's Guide

インタプリタ

インタプリタを終わらせる

:quit or :q

prelude > :quit
Leaving GHCi.

ソースファイルをインタプリタに渡して起動する

$ ghci foo.hs

Reference

Haskell超入門 Part.1

[入門]関数プログラミング―質の高いコードをすばやく直感的に書ける!

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?