Ubuntu 14.04 に PureScript をインストールしようとしています。私は Haskell-Platform の最新バージョンを持っていて、実行しcabal update
ました。モジュールが見つからないcabal install purescript
というエラーが表示されます。System.IO.UTF8
グーグルは、これがそのパッケージの一部でutf8-string
あり、そのパッケージがインストールされたときに公開されたモジュールの1つである必要があることを明らかにしています。
ただし、インストールすると、そのようなパッケージは利用できません。
ely@eschaton:~$ cabal update
Downloading the latest package list from hackage.haskell.org
ely@eschaton:~$ cabal --reinstall install utf8-string
Resolving dependencies...
In order, the following will be installed:
utf8-string-1 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring utf8-string-1...
Building utf8-string-1...
Preprocessing library utf8-string-1...
[1 of 5] Compiling Codec.Binary.UTF8.String ( Codec/Binary/UTF8/String.hs, dist/build/Codec/Binary/UTF8/String.o )
[2 of 5] Compiling Codec.Binary.UTF8.Generic ( Codec/Binary/UTF8/Generic.hs, dist/build/Codec/Binary/UTF8/Generic.o )
[3 of 5] Compiling Data.String.UTF8 ( Data/String/UTF8.hs, dist/build/Data/String/UTF8.o )
[4 of 5] Compiling Data.ByteString.UTF8 ( Data/ByteString/UTF8.hs, dist/build/Data/ByteString/UTF8.o )
[5 of 5] Compiling Data.ByteString.Lazy.UTF8 ( Data/ByteString/Lazy/UTF8.hs, dist/build/Data/ByteString/Lazy/UTF8.o )
In-place registering utf8-string-1...
Installing library in /home/ely/.cabal/lib/utf8-string-1/ghc-7.6.3
Registering utf8-string-1...
Installed utf8-string-1
ely@eschaton:~$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import System.IO.UTF8
<no location info>:
Could not find module `System.IO.UTF8'
It is not a module in the current program, or in any known package.
上記の提案されたライブラリのうち 5 つだけがコンパイルされていることがわかります。
PureScriptソースは間違いなくSystem.IO.UTF8
.
しかしSystem.IO.UTF8
、長い間 (2 年以上) 変更されていないかなり古いパッケージのように見えるため、これが最近のバージョンでの大幅な変更である可能性は低いです。起動するには、PureScript は非常に新しいため、利用可能な場合、utf8-string の新しいバージョンに基づいていることは間違いありません。
問題は、PureScript がこの依存関係を単独でインストールできないのはなぜでしょうか ... のcabal
インストールがモジュールutf8-string
の公開に失敗するのかということです。System.IO.UTF8