haskell-docs icon indicating copy to clipboard operation
haskell-docs copied to clipboard

Provide .ghci script to include

Open nomeata opened this issue 12 years ago • 2 comments

Hi,

I suggest to install a ghci script that does the :def command, and in the installation instructions suggest to include that in the global ghci. This way, you can change how the :def command works in later versions without user interaction.

See packages ghc-heap-view and ghc-vis for examples. These also extended Setup.hs to explain this step to the user.

Greetings, Joachim

nomeata avatar Dec 28 '12 11:12 nomeata

Doesn't this have issues with permissions, etc.? (Namely that any .ghci file needs to be writable by the owner only.)

ivan-m avatar Dec 28 '12 21:12 ivan-m

That would be the case in the usual case of a user running "cabal install". Once distribution package this in system-wide packages, they might need to find a solution (such as also allowing files writable by root only).

nomeata avatar Dec 29 '12 16:12 nomeata