GHC 7.8.1 ããªãªã¼ã¹ãããtype family ããã¾ãæ±ããªãåé¡ãçºè¦ãããããããã« GHC 7.8.2 ããªãªã¼ã¹ããã¾ããããã®ããã㧠Yesod ãããã¾ããã«ãã§ããããã«ãªãã¾ããããã°ãããã¦ãGHC 7.8.3 ããªãªã¼ã¹ãããæ°é ãããã¾ããã¾ããä¸ã¶æãç®å¦ã« Haskell Platform 2014.2 ãåºãããã§ãã
ãããªãã¨ãGHC ããã¾ãå ±åããã¦ããã Haskell Platform 2014.2 ã®ãªãªã¼ã¹ãå¾ ã¨ããã¨æãããããã¾ãããããããªå¿ è¦ã¯ããã¾ãããGHC èªä½ã«è¤æ°ã®ãã¼ã¸ã§ã³ã¨å ±åã§ããä»çµã¿ãããããã§ãã
GHC 7.8.2 ã試ããã人ã¯ãæ°è»½ã«ã¤ã³ã¹ãã¼ã«ãã¾ããããGHC 7.8.3 ã Haskell Platform 2014.2 ããªãªã¼ã¹ãããããGHC 7.8.2 ã¯æ¶ãã°ããã®ã§ããããã§ã¯ãå¾ã§æ¶ããããããããã®ã³ããç´¹ä»ãã¾ãã対象ã¯ãUnix 系㮠OS ã§ããWindows ã®ãã¨ã¯ã誰ãã«ä»»ãã¾ãã
ã¤ã³ã¹ãã¼ã«
GHC 7.8.2のダウンロードサイトãããå¿ è¦ãªãã¤ããªãåã£ã¦ãã¦å±éãã¾ãã以ä¸ãMac ã®ä¾ï¼
% wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-apple-darwin-mavericks.tar.xz % tar zxvf ghc-7.8.2-x86_64-apple-darwin-mavericks.tar.xz % cd ghc-7.8.2
ããã§ãåã« configure ãå®è¡ããã¨ã/usr/local ã®ä¸ã«ã¤ã³ã¹ãã¼ã«ããè¨å®ã«ãªãã¾ããããã§ã ã¨ãã¤ã³ã¹ãã¼ã«ãããã¡ã¤ã«ãæ£ãã°ã£ã¦ãå¾ããæ¶ãã«ãããªãã¾ããããã§ãä¾ãã° /usr/local/ghc-7.8 ã¨ãããã£ã¬ã¯ããªã®ä¸ã«ã¤ã³ã¹ãã¼ã«ããããã«æ±ºãã¾ãã
% ./configure --prefix=/usr/local/ghc-7.8
次㫠/usr/local/ghc-7.8 ã¨ãããã£ã¬ã¯ããªãä½ãã¾ããåã¯ããã®ãã£ã¬ã¯ããªãèªåã®ææã«ãã¦ãã¾ããroot ã®ææã§ãããã§ãããmake install ããã¨ãã« sudo ã使ããªãã¨ããã¾ãããããããªãã¨ã¯èµ·ãã¾ããããä¸å®ãªäººã¯èªåã®æ¨©éã§ã¤ã³ã¹ãã¼ã«ããã®ãããã§ããããGHC èªä½ãèªåã®ææã«ãªã£ã¦ãã¦ããGHC ãå£ããçµé¨ã¯åã«ã¯ããã¾ããã
% sudo mkdir /usr/local/ghc-7.8 % sudo chown ããªãã®ã¢ã«ã¦ã³ã /usr/local/ghc-7.8 % sudo make install
PATH ã« /usr/local/ghc-7.8/bin ã追å ããã°ãGHC 7.8.2 ã®ã¤ã³ã¹ãã¼ã«ã¯å®äºã§ãã
åé¤
åé¤ããããªã£ããã3ã¤ã®ãã£ã¬ã¯ããæ¶ãã¾ãã
- GHC 7.8.2 æ¬ä½ (ãã¨ãã° /usr/local/ghc-7.8)
- ~/.ghc 以ä¸ã®ãµããã£ã¬ã¯ã㪠(ãã¨ãã° ~/.ghc/x86_64-darwin-7.8.2)
- ~/.cabal 以ä¸ã®ãµããã£ã¬ã¯ã㪠(ãã¨ãã°ã~/.cabal/lib/i386-linux-ghc-7.8.2)
~/.ghc ã ~/.cabal èªä½ã¯æ¶ãã¦ã¯ããã¾ãããããããã°ã~/.cabal/bin 以ä¸ã®ã³ãã³ãã¯æ®ãã¾ããã³ãã³ãã¯ãéçãªã³ã¯ããã¦ããã®ã§ãå¼ãç¶ã使ãã¾ãããã ããalex ã happy ã®ããã« lib ã«è¨å®ãã¡ã¤ã«ãç½®ãã¦ããã³ãã³ãã¯ããããªããªãã®ã§ãã¤ã³ã¹ãã¼ã«ãç´ãå¿ è¦ãããã¾ãã
å¿ç¨
ãã®æ¹æ³ã¯ãä½ã GHC æ¬ä½ãæ¶ãããå ´åã ãã§ã¯ãªããcabal ã§ã¤ã³ã¹ãã¼ã«ããã¦ã¼ã¶ã©ã¤ãã©ãªããããããªã£ãã¨ãã«ã使ãã¾ãã~/.ghc 㨠~/.cabal 以ä¸ã®ãµããã£ã¬ã¯ããªãæ¶ãã°ãä¸ããä¸çãæ§ç¯ã§ããããã«ãªãã¾ãã