2007-06-17から1日間の記事一覧
catコマンドの作成。 まずは、テスト用テキストの作成。 ファイル名は、test_hoge hoge0 hoge1 hoge2 hoge3 次に、cat.hsを作成 main = do cs<-getContents putStr cs ghcコマンドでコンパイル。 $ ghc cat.hs -o cat catという実行ファイルが作成されるので…
catコマンドの作成。 まずは、テスト用テキストの作成。 ファイル名は、test_hoge hoge0 hoge1 hoge2 hoge3 次に、cat.hsを作成 main = do cs<-getContents putStr cs ghcコマンドでコンパイル。 $ ghc cat.hs -o cat catという実行ファイルが作成されるので…