Skip to content

Document :unadd GHCi command in user guide

Jan Hrček requested to merge jhrcek/ghc:jhrcek/document-unadd into master

The commands :unadd and :show targets have been added to GHCi about 4 years ago in 0bff9e67. They should be mentioned in the user guide.

I also have a question which I couldn't find answer to in user guide. It seems to me that :show modules and :show targets is always displaying the same set of modules. Could someone please give me an example where their output would differ? It would be nice to explain the difference between them in user guide.

Here's the implementation of both so you don't have to search the source code

showTargets: https://gitlab.haskell.org/ghc/ghc/-/blob/7f527f01c8b4b61047fa87905750ee962f527e36/ghc/GHCi/UI.hs#L3486-3492

showModules: https://gitlab.haskell.org/ghc/ghc/-/blob/7f527f01c8b4b61047fa87905750ee962f527e36/ghc/GHCi/UI.hs#L3344-3354

Edited by Jan Hrček

Merge request reports