> I would be cautious about using the ghc-api hi file interfaces; hi files turn out to interact with aAre you cautioning against using the GHC API (as opposed to the --show-iface command line interface)
> lot of low-level parts in complex ways (even to the extent that they're a large part of why ghc
> can't parallelize builds itself and attempts to change that have mostly failed).or using HI files themselves?-- Saurabh.--On Sun, Dec 3, 2017 at 2:04 AM, Brandon Allbery <allbery.b@gmail.com> wrote:I would be cautious about using the ghc-api hi file interfaces; hi files turn out to interact with a lot of low-level parts in complex ways (even to the extent that they're a large part of why ghc can't parallelize builds itself and attempts to change that have mostly failed).But if you must do this, you *really* want to have https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compil ready to hand --- and go through it first so you have some idea of how it works; much of it is links to the lower level details (often straight into the source).er On Sat, Dec 2, 2017 at 10:59 AM, Saurabh Nanda <saurabhnanda@gmail.com> wrote:______________________________-- Saurabh.* Finally how does one evaluate the resulting monadic action to get access to the underlying `ModIface`?* What does `Maybe FastString` represent and how does one construct it?* IsBootInterface would mostly be False, right?* What is SDoc and how to construct a reasonable value for this argument?More digging led me to https://www.stackage.org/haddo(GHC newbie alert -- is this the right mailing list for these kind of questions?)I"m writing some code to figure out all the instances of particular type-classes and after exploring a lot of options (hlint, haskell-src-exts, annotations, doctests, etc), I realized that the compiler had already figured it out and written it to disk for me!ck/lts-9.0/ghc-8.0.2/LoadIface after which I got stuck. How does one call this function? Specifically:.html#v:loadSrcInterface _________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
--brandon s allbery kf8nh sine nomine associatesunix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net