
14 Dec
2013
14 Dec
'13
9:02 a.m.
* Carlo Hamalainen
On 13/12/13 23:28, Roman Cheplyaka wrote:
String is defined in GHC.Base, but GHC.Base is an internal (not exposed) module of the base package; that's why there's no documentation for it.
Right.
Instead of asking where the thing is defined, you should be asking where it's exported from. In this case, String is re-exported from Prelude.
To do this will I have to dig into the GHC API?
Yes. haskell-names can also do this (it's used in halberd to solve a similar task: https://github.com/haskell-suite/halberd) But since ghc-mod is based on the GHC API, you should probably stick to it. I'm not familiar with the GHC API either; hopefully, someone else will help you here. Roman