Re: GHC (API?) question: GHC Core for Base libraries

2018-12-04 Thread Shao, Cheng
Indeed, the boot.sh script is likely what you are looking for. To compile `base` and retrieve Core for it, you just need to set up an empty package database, use the Setup.hs script in base to compile it, and load your plugin via "--ghc-option=.." provided to `Setup configure`. On Wed, Dec 5, 2018

Re: GHC (API?) question: GHC Core for Base libraries

2018-12-04 Thread Brandon Allbery
It's more complicated than that, because unless your'e just doing some transient experimentation this will bite you over and over. What you'll want to do is check the stage during compilation (it should be available as macros via the CPP extension) and disable the plugin for stage 1. Then (I

Re: GHC (API?) question: GHC Core for Base libraries

2018-12-04 Thread Bill Hallahan
> Joachim Breitner's veggies(https://github.com/nomeata/veggies > ) project is a good example of using a > vanilla ghc installation to compile standard libraries like base. Thanks Cheng, this looks interesting and helpful! I'm still trying to understand it

Re: Cabal not updated after rebase?

2018-12-04 Thread My Nguyen
Thank you so much Richard - it worked! And you are right, I had a `git add -u` at some point. This is what happens when I don’t review my changes closely! I had no idea I made changes to libraries/Cabal and such. Anyways, the diff is on Phab again, D5229. Hope to see feedback :) My

Re: Windows test failures

2018-12-04 Thread Roland Senn
Hi Tamar, WINDOWS===On Windows I did the following changes before running the 'plugin09' test: 1.) In the compiler (HscMain.hs), just before calling the plugin function 'parsedPlugin', I set BufferMode of the file stdout to LineBuffering. 2.) At the same place, I write a message to stdout with