Dump core of base
Matthew Pickering
matthewtpickering at gmail.com
Wed Dec 19 20:04:29 UTC 2018
Looking at the doc/user-setting.md file for Hadrian, I would guess the
following.
https://github.com/ghc/ghc/blob/master/hadrian/doc/user-settings.md
1. Copy hadrian/src/UserSettings.hs to hadrian/UserSetting.hs
2. Define
```
dumpArgs = userArgs = builder Ghc ? package base ? arg "-ddump-simpl
-ddump-to-file -ddump-dir=foo"
```
3. Create a build flavour something like
userFlavour = quickestFlavour { name = "user", args = (args
quickestFlavour) <> dumpArgs }
4. Compile with `./hadrian.sh -j --flavour=user`
On Wed, Dec 19, 2018 at 7:33 PM David Feuer <david.feuer at gmail.com> wrote:
>
> I don't happen to know the answer to your question, but when hacking on base, you can often get the job done much faster by copying the necessary source files somewhere else and renaming modules as necessary. Recompiling base is a pain and a half.
>
> On Wed, Dec 19, 2018 at 2:26 PM Andrew Martin <andrew.thaddeus at gmail.com> wrote:
>>
>> How does one go about using -ddump-simpl -dsuppress-all -ddump-to-file (or variations of this) when building base? I've got some strong suspicions that that are arguments to event manager functions that are morally strict that go unnoticed by demand analysis. However, I need to dump base's core to confirm this.
>>
>> --
>> -Andrew Thaddeus Martin
>> _______________________________________________
>> Libraries mailing list
>> Libraries at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
More information about the Libraries
mailing list