Generating ctags for Haskell Platform (standard library), specifically for prelude

Viewed 1870

I've installed Haskell on my Mac using Homebrew, that is brew install ghc haskell-platform.

I'm looking for a way to generate a ctags file of the standard Haskell Platform libraries (modules) so I could browse the source while coding in Vim. I specifically need Prelude and the other most popular modules, like Data.List and such.

I am aware that the source is available on the web via Hoogle, but It'll be easier for me to jump-to-source whenever I need to, for learning purposes.

  1. Where is the source located when installing the Haskell Platform?
  2. Is the source even installed when installing the Haskell Platform, or just the compiled binaries or something of the sort?
  3. How can I make the source available for browsing in Vim? As in put the generated tags file somewhere and tell Vim to read from it. I also understand there's no need to re-generate the tags file, since these modules are pretty much static and don't get updated very often.
1 Answers
Related