Skip to content

Commit

Permalink
🔥 Delete the section about ghc-pkg and complete ex14 :tada
Browse files Browse the repository at this point in the history
Currently there is s no way to list packages installed by `cabal install --lib`

Related: haskell/cabal#6262
  • Loading branch information
igrep committed Apr 3, 2022
1 parent 7c3fdcf commit 43c9e98
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions assets/14.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,25 +151,3 @@ ghci> words ""
ghci> splitOn "\t" ""
[""]
```

### パッケージがインストールされていることを確認する

以下は、当入門「Make Mistakes to Learn Haskell」を開発しているディレクトリーで実行した場合の出力です。

```
shell> stack exec ghc-pkg list
C:\Users\yuji-yamamoto\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.3\lib\package.conf.d
Cabal-2.2.0.1
Win32-2.6.1.0
array-0.5.2.0
base-4.11.1.0
... 省略 ...
C:\sr\snapshots\03cb0bbe\pkgdb
... 省略 ...
split-0.2.3.3
... 省略 ...
```

出力結果には「パッケージデータベース」と呼ばれる、パッケージの情報が含まれるディレクトリーごとに、インストールされているパッケージの一覧が出力されます。
先ほど`stack install split`コマンドを実行したので、splitパッケージが入っていますね。

0 comments on commit 43c9e98

Please sign in to comment.