{"id":12364,"date":"2013-01-23T21:00:12","date_gmt":"2013-01-23T12:00:12","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=12364"},"modified":"2013-10-29T19:38:04","modified_gmt":"2013-10-29T10:38:04","slug":"haskell%e3%82%92%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%81%8b%e3%82%89%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%ae%e3%81%af%e5%a4%a7%e5%a4%89","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/12364.html","title":{"rendered":"Haskell\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306f\u5927\u5909\u305d\u3046&#8230;"},"content":{"rendered":"<p>Haskell\u306e\u5b9f\u884c\u74b0\u5883\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u7528\u610f\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002\u3069\u3046\u3084\u3089\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308bghc\u306f\u53e4\u904e\u304e\u308b\u307f\u305f\u3044\u3067\u3059\u3002ubuntu\u3067\u3082\u540c\u69d8\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001haskell platform\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u826f\u3044\u305d\u3046\u3067\u3059\u3002\u307e\u3041\u3001\u65b0\u3057\u304f\u52c9\u5f37\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5834\u5408\u306f\u3001\u6700\u65b0\u306e\u5b89\u5b9a\u7248\u3092\u4f7f\u3044\u305f\u304f\u306a\u308a\u307e\u3059\u3088\u306d\u3002\u3068\u306f\u3044\u3048\u3001\u672c\u5f53\u306f\u4f7f\u3046\u53c2\u8003\u66f8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u308f\u305b\u305f\u65b9\u304c\u306f\u307e\u3089\u305a\u306b\u3059\u307f\u307e\u3059\u304c\u3002<br \/>\n<!--more--><\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u3056\u3063\u3068\u307f\u305f\u611f\u3058\u3067\u306f\u4e0b\u8a18\u306e\u624b\u9806\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002configure, make, make install \u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u304f\u306f\u306a\u3044\u306f\u305a\u3067\u3059\u304c\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3088\u3046\u306a\u306e\u3067\u6b62\u3081\u307e\u3057\u305f&#8230;<\/p>\n<ol>\n<li><a href=\"http:\/\/www.haskell.org\/ghc\/\">The Glasgow Haskell Compiler<\/a>\u304b\u3089GHC 7.4.2\u306e\u30bd\u30fc\u30b9\u3092\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li><a href=\"http:\/\/www.haskell.org\/platform\/\">http:\/\/www.haskell.org\/platform<\/a>\u304b\u3089haskell-platform-2012.4.0.0.tar.gz \u3092\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n<p>CentOS6\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ mkdir -p $HOME\/applications\/haskell\/src\r\n$ cd $HOME\/applications\/haskell\/src\r\n$ wget http:\/\/lambda.haskell.org\/platform\/download\/2012.4.0.0\/haskell-platform-2012.4.0.0.tar.gz\r\n$ wget http:\/\/www.haskell.org\/ghc\/dist\/7.4.2\/ghc-7.4.2-x86_64-unknown-linux.tar.bz2\r\n$ tar xf haskell-platform-2012.4.0.0.tar.gz\r\n$ tar xf $HOME\/download\/ghc-7.4.2-x86_64-unknown-linux.tar.bz2 \r\n$ cd $HOME\/applications\/haskell\/src\/ghc-7.4.2\/\r\n$ .\/configure --prefix=$HOME\/applications\/haskell\/ghc-7.4.2\r\n$ make install\r\n$ cd $HOME\/applications\/haskell\/src\/haskell-platform-2012.4.0.0\/\r\n$ PATH=$HOME\/applications\/haskell\/ghc-7.4.2\/bin:$PATH .\/configure --prefix=$HOME\/applications\/haskell\/haskell-platform\r\n$ make\r\n$ make install\r\n<\/pre>\n<p>\u4e0b\u8a18\u3092 .bash_profile \u306a\u3069\u3078\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nexport PATH=$HOME\/applications\/haskell\/gch-7.4.2\/bin:$HOME\/applications\/haskell\/haskell-platform\/bin:$PATH\r\n<\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u304c\u3001\u3084\u3063\u3071\u308a\u4ee5\u524d\u66f8\u3044\u305f\u4e0b\u8a18\u306e\u65b9\u6cd5\u306e\u65b9\u304c\u697d\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"\/\/www.sssg.org\/blogs\/hiro345\/archives\/11659.html\">Haskell\u3092\u52c9\u5f37\u3059\u308b\u306a\u3089\u3001\u307e\u305a\u306fGHC\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb | hiro345<\/a><\/p>\n<p>\u306a\u3093\u3067Haskell\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u52c9\u5f37\u3059\u308b\u306e\u306b\u306f\u3084\u3063\u3071\u308aHaskell\u304b\u306a\u3041\u3001\u3068\u601d\u3063\u3066\u3044\u3066\u3001\u4ee5\u524d\u8aad\u3093\u3060<a type=\"amzn\" asin=\"4774149942\">WEB+DB PRESS Vol.67<\/a>\u3092\u4e45\u3057\u3076\u308a\u306b\u3081\u304f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u3084\u3063\u3071\u308aCSV\u30d1\u30fc\u30b5\u3068\u304b\u306f\u4f8b\u984c\u3068\u3057\u3066\u3044\u3044\u306e\u304b\u306a\u3041\u3001\u3068\u601d\u3063\u3066\u3044\u305f\u308a\u3057\u3066\u3001\u305d\u306e\u95a2\u4fc2\u3067\u3059&#8230;<\/p>\n<p>CSV\u306f\u300c<a href=\"http:\/\/www.ietf.org\/rfc\/rfc4180.txt\">RFC4180<\/a>\u300d\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u3066\u3001\u65e5\u672c\u8a9e\u8a33\u304c\u300c<a href=\"http:\/\/www.kasai.fm\/wiki\/rfc4180jp\">CSV\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u822c\u7684\u66f8\u5f0f (RFC4180 \u65e5\u672c\u8a9e\u8a33) &#8211; \u30a2\u30eb\u30d7\u30b9\u767b\u5c71\u306e\u7384\u95a2\u53e3\u30fb\u7b20\u4e95\u5bb6<\/a>\u300d\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Haskell\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u300c<a href=\"http:\/\/gihyo.jp\/magazine\/wdpress\/archive\/2012\/vol67\/support\">\u30b5\u30dd\u30fc\u30c8\u30da\u30fc\u30b8\uff1aWEB+DB PRESS Vol.67\uff5cgihyo.jp \u2026 \u6280\u8853\u8a55\u8ad6\u793e<\/a>\u300d\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u306e\u3067\u3001\u8208\u5473\u306e\u3042\u308b\u4eba\u306f\u66f8\u7c4d\u3068\u4e00\u7dd2\u306b\u8aad\u3093\u3067\u307f\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li><a type=\"amzn\" asin=\"4774149942\">WEB+DB PRESS Vol.67<\/a><\/li>\n<\/ul>\n<div>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4774149942&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Haskell\u306e\u5b9f\u884c\u74b0\u5883\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u7528\u610f\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002\u3069\u3046\u3084\u3089\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308bghc\u306f\u53e4\u904e\u304e\u308b\u307f\u305f\u3044\u3067\u3059\u3002ubuntu\u3067\u3082\u540c\u69d8\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001haskell  &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/12364.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[26,676],"class_list":["post-12364","post","type-post","status-publish","format-standard","hentry","category-program","tag-centos","tag-haskell"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/12364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=12364"}],"version-history":[{"count":15,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/12364\/revisions"}],"predecessor-version":[{"id":15025,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/12364\/revisions\/15025"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=12364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=12364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=12364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}