{"id":26474,"date":"2022-12-21T14:13:40","date_gmt":"2023-08-18T11:12:37","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/"},"modified":"2025-08-11T21:28:23","modified_gmt":"2025-08-11T13:28:23","slug":"%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/","title":{"rendered":"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell"},"content":{"rendered":"<p>\u4e3a\u4e86\u5e94\u4ed8\u8003\u8bd5\uff0c\u6211\u5728Ubuntu 15.04\u4e0a\u5b89\u88c5\u4e86Haskell\u3002<\/p>\n<pre class=\"post-pre\"><code>% sudo apt-get update\r\n% sudo apt-get install -y software-properties-common\r\n% sudo add-apt-repository -y ppa:hvr\/ghc\r\n% sudo apt-get update\r\n% sudo apt-get install -y cabal-install-1.22 ghc-7.10.2\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"nb\">export <\/span><span class=\"nv\">PATH<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"~\/.cabal\/bin:\/opt\/cabal\/1.22\/bin:\/opt\/ghc\/7.10.2\/bin:<\/span><span class=\"nv\">$PATH<\/span><span class=\"s2\">\"<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>% source .bashrc\r\n% cabal update\r\n% cabal install alex happy\r\n<\/code><\/pre>\n<p>\u8bf7\u60a8\u63d0\u4f9b\u66f4\u591a\u5177\u4f53\u7684\u4fe1\u606f\u3002\u8fd9\u6837\u6211\u624d\u80fd\u4e3a\u60a8\u63d0\u4f9b\u66f4\u51c6\u786e\u7684\u7b54\u6848\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Downloads for Linux<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">ppa:hvr\/ghc<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u5e94\u4ed8\u8003\u8bd5\uff0c\u6211\u5728Ubuntu 15.04\u4e0a\u5b89\u88c5\u4e86Haskell\u3002 % sudo apt-get update [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26474","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884chaskell\u3002-6\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884chaskell\u3002-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-18T11:12:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T13:28:23+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/\",\"name\":\"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-18T11:12:37+00:00\",\"dateModified\":\"2025-08-11T13:28:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"description\":\"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell - Blog - Silicon Cloud","description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884chaskell\u3002-6\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell","og_description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884chaskell\u3002-6\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-18T11:12:37+00:00","article_modified_time":"2025-08-11T13:28:23+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/","name":"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-18T11:12:37+00:00","dateModified":"2025-08-11T13:28:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"description":"\u5173\u4e8e\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u8fd0\u884cHaskell"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8ubuntu%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e8%bf%90%e8%a1%8chaskell%e3%80%82-6\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26474"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26474\/revisions"}],"predecessor-version":[{"id":56085,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26474\/revisions\/56085"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}