Undocumented(?) magic "this" package-id in PackageImports

Herbert Valerio Riedel hvr at gnu.org
Tue Nov 13 13:30:35 CET 2012


Hello Simon,

I just found out that in combination with the PackageImports extension
there's a special module name "this" which according to [1] always
refers to the current package. But I couldn't find this rather useful
feature mentioned in the GHC 7.6.1 Manual PackageImports section[2]. Has
this been omitted on purpose from the documentation?

Cheers,
  hvr

 [1]: https://github.com/ghc/ghc/commit/436a5fdbe0c9a466569abf1d501a6018aaa3e49e
 [2]: http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#package-imports



More information about the Glasgow-haskell-users mailing list