2006-09-01から1日間の記事一覧
hello.hsファイル main = putStrLn "hello, world." これをコンパイルしてみる。 C:\ghc>ghc hello.hs -o hello hello.exeができます。あとは実行。 C:\ghc>hello hello, world. main main = ... でmain関数(アクション?)を定義します。'='の右側がmain関…
hello.hsファイル main = putStrLn "hello, world." これをコンパイルしてみる。 C:\ghc>ghc hello.hs -o hello hello.exeができます。あとは実行。 C:\ghc>hello hello, world. main main = ... でmain関数(アクション?)を定義します。'='の右側がmain関…