Re: Using GHC API with multiple targets

2023-02-06 Thread Matthew Pickering
Can you put the whole example into a github repo and then I will look at what is wrong? Matt On Mon, Feb 6, 2023 at 1:34 PM Eternal Recursion via ghc-devs wrote: > > Thanks, Andreas! > > I will check out the hint package and also play with verbosity and > workingDirectory. > > I considered

Re: Using GHC API with multiple targets

2023-02-06 Thread Eternal Recursion via ghc-devs
Thanks, Andreas! I will check out the hint​ package and also play with verbosity and workingDirectory. I considered using the Cabal library to derive the inputs from the project's cabal file, but it does help first to know what the needful inputs are, and where to stash them in the DynFlags

Re: Using GHC API with multiple targets

2023-02-06 Thread Eternal Recursion via ghc-devs
Tbh, the current code is a bit of a Frankenstein cobbled together from the dead limbs of online GHC API tutorials past. I think that line was the swollen appendix of something. :) But I can confirm that commenting out that line does not help. I get exactly the same module graph output and

Re: Using GHC API with multiple targets

2023-02-06 Thread Matthew Pickering
Looks like it would work to me if you remove ``` setContext [ IIDecl $ simpleImportDecl (mkModuleName "Prelude") ] ``` Why do you have this line? Matt On Mon, Feb 6, 2023 at 12:54 PM Andreas Klebinger wrote: > > I think this is an ok forum for this kind of question. You could also try the >

Re: Using GHC API with multiple targets

2023-02-06 Thread Andreas Klebinger
I think this is an ok forum for this kind of question. You could also try the haskell mailing list but I'm not sure if you will get more help tehre. I recently played around with the ghc api and I found the `hint` package to be quite helpful as an example on how to do various things when using

Re: Using GHC API with multiple targets

2023-02-06 Thread Eternal Recursion via ghc-devs
If this is the wrong forum for this question (which as I think about it, I suppose it is) then redirection to a more appropriate mailing list or forum (or any advice, really) would be appreciated. I just figured this would be the forum with the best understanding of how the GHC API works (and

Re: Registering account in gitlab.haskell.org

2023-02-06 Thread ccycle
Now I can successfully log in. Thank you for approving! On Feb 6, 2023 19:48 +0900, Bryan Richter , wrote: > My fault. I chose the wrong "confirmation" option in the admin panel. It is > the one that manually confirms your email address. > > Now I've also approved your account! > > > On Mon, 6

Re: Registering account in gitlab.haskell.org

2023-02-06 Thread Bryan Richter via ghc-devs
My fault. I chose the wrong "confirmation" option in the admin panel. It is the one that manually confirms your email address. Now I've also approved your account! On Mon, 6 Feb 2023 at 12:40, ccycle wrote: > Thank you, but now I got same error and cannot log in. Will I able to log > in after

Re: Registering account in gitlab.haskell.org

2023-02-06 Thread ccycle
Thank you, but now I got same error and cannot log in. Will I able to log in after a while? On Feb 6, 2023 16:42 +0900, Bryan Richter , wrote: > You've been approved! Sorry for the hiccup, there was a spam problem on the > server for a while. > > > On Mon, 6 Feb 2023 at 08:41, ccycle wrote: > >