ivan-m / haskell-docs

Get the Haskell documentation of a name from a module
BSD 3-Clause "New" or "Revised" License
32 stars 8 forks source link

Provide .ghci script to include #3

Open nomeata opened 11 years ago

nomeata commented 11 years ago

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

ivan-m commented 11 years ago

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

nomeata commented 11 years ago

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).