Core of a whole package
Alberto Sadde O.
albertosadde at gmail.com
Tue May 31 21:56:37 UTC 2016
> 2016-05-31 16:04 GMT-04:00 Alberto Sadde O. <albertosadde at gmail.com>:
> > I am trying to get the Core of a whole package.
> > I have been using the GHC API to get the Core of each file in a package
> but
> > I have a problems with non-exposed modules of the package.
>
> Try `cabal install --ghc-options="-ddump-simpl -ddump-to-file"`. You
> should see Core outputs under `dist/`.
> (or `cabal configure --ghc-options=...` then `cabal build`)
>
> If you have all the dependencies installed already you can just do
> `ghc --make Main.hs -fforce-recomp -ddump-simpl -ddump-to-file` where
> `Main.hs` imports all the modules in your project.
>
Thanks for the answer.
The thing is that I want to manipulate the Core of the package not just
simply dump it to a file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20160531/d6bd5c38/attachment.html>
More information about the ghc-devs
mailing list