重城 良国:Haskell 教養としての関数型プログラミング

作成日:2020-07-16
最終更新日:

概要

ていねいな Haskell に関する本

感想

Stack は、Haskell の管理を行なうシステムである。これを導入しようとして、 うまくいかなかった。このときの状況と対応を報告する。

C:\WINDOWS\system32>stack setup
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.


Already downloaded.
Already downloaded.
Already downloaded.
Decompressing ghc-8.8.3.tar.xz...

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3.tar.xz

Extracting  ghc-8.8.3.tar

Everything is Ok

Size:       2555330560
Compressed: 204702116
Extracting ghc-8.8.3.tar...
Extracted total of 10091 files from ghc-8.8.3.tar
C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3-tmp-2aa2ca71a80c53bd\ghc-8.8.3\: (続く)
renameDirectory:renamePath:MoveFileEx (続く)
"\\\\?\\C:\\Users\\username\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.8.3-tmp-2aa2ca71a80c53bd\\ghc-8.8.3\\" (続く)
Just "\\\\?\\C:\\Users\\username\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.8.3\\": (続く)
permission denied (アクセスが拒否されました。)

これに関して、下記のページに一連の状況と対応策が出ている:
https://github.com/commercialhaskell/stack/issues/1917

私の場合は、結局 Kaspersky を一時的に動作停止させることによって、 インストールが成功した。

C:\WINDOWS\system32>stack setup
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Already downloaded.
Already downloaded.
Decompressing ghc-8.8.3.tar.xz...

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3.tar.xz

Extracting  ghc-8.8.3.tar

Everything is Ok

Size:       2555330560
Compressed: 204702116
Extracting ghc-8.8.3.tar...
Extracted total of 10091 files from ghc-8.8.3.tar
GHC installed to C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\
Downloaded msys2-20180531.
Already downloaded.
Already downloaded.
Decompressing msys2-20180531.tar.xz...

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531.tar.xz

Extracting  msys2-20180531.tar

Everything is Ok

Size:       281825280
Compressed: 63974800
Extracting msys2-20180531.tar...
Extracted total of 14569 files from msys2-20180531.tar
Copying skeleton files.
These files are for the users to personalise their msys2 experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/username/.bashrc'
'./.bash_logout' -> '/home/username/.bash_logout'
'./.bash_profile' -> '/home/username/.bash_profile'
'./.inputrc' -> '/home/username/.inputrc'
'./.profile' -> '/home/username/.profile'
・[0mstack will use a sandboxed GHC it installed・[0m
・[0mFor more information on paths, see 'stack path' and 'stack exec env'・[0m
・[0mTo use this GHC and packages outside of a project, consider using:・[0m
・[0mstack ghc, stack ghci, stack runghc, or stack exec・[0m

書き方

ひらがなと読点が多いので、私には逆に読むのに苦労する。 みっつ、とか、よっつ、という口語的な単語も出てくるので私は困った。

この本はできるだけ、関数型言語を学ぶ読者のための障壁を下げようという工夫があるが、 まだ工夫してほしいところもある。たとえば、p.74 でpi は定義済みの変数です。 円周率の値に束縛されています。 とある。この「束縛」ということばは、関数型言語独特の用語であろう。 手続き型言語では「代入」といってすませるところ、関数型言語では代入という概念はなく、 変数と値の関係は、「変数は値に束縛される」、「値は変数を束縛する」という関係となる。 ただ、私の説明では実感がわかない。 束縛という固い用語を使わなければならない理由を著者には説明してほしかった。

書誌情報

書 名Haskell
著 者重城 良国
発行日 年 月 日
発行元秀和システム
定 価 円(税別)
サイズ
ISBN
NDC
その他越谷市立図書館南部図書室にて借りて読む

まりんきょ学問所関数型言語Haskell > 重城 良国:Haskell


MARUYAMA Satosi