Abhiroop Sarkar <asiamgen...@gmail.com> writes:

> Is it possible to view the types generated in the GHC.Prim module on my
> local machine?
>
> The commentary[1] states that it is a virtual module and a source file
> including dummy declarations are available in this location: `
> libraries/base/GHC/Prim.hs`, however, upon downloading and building the
> latest GHC codebase I could not find this dummy file on my machine. Do I
> have to modify my Makefile somehow to generate these dummy types?
>
Indeed GHC.Prim is no longer exposed by `base`; it's now in the
`ghc-prim` library. If you have built the compiler you should find the
module generated for Haddock in
libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs. I've updated
the commentary to reflect this new location.

You can also use the :browse GHCi command to dump the module's declarations.

Cheers,

- Ben

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to