Finding out if a binding is externally visible

Sebastian Graf sgraf1337 at gmail.com
Sun May 28 21:53:37 UTC 2017


> welcome on this list!


Thanks :)

     isExportedId :: Var -> Bool


That's what I have been using so far, but I found that said RULE pragmas
mentioned non-exported identifiers. Or maybe it was just some temporary
build system mess-up, I'll work on a reproduction...

On Sun, May 28, 2017 at 10:33 PM, Joachim Breitner <mail at joachim-breitner.de
> wrote:

> Hi Sebastian,
>
> welcome on this list!
>
> Am Sonntag, den 28.05.2017, 17:52 +0200 schrieb Sebastian Graf:
> > Is there some function that tells me if an identifier is 'externally
> > visible' in that sense? I think https://downloads.haskell.org/~ghc/8.
> > 0.1/docs/html/libraries/ghc-8.0.1/GHC.html#v:isExternalName is what
> > I'm after, but I want to be sure. Does that function already work
> > when the Ids are still local?
>
> I would expect
>
>     isExportedId :: Var -> Bool
>
> to do precisely that.
>
> Greetings,
> Joachim
>
> --
> Joachim “nomeata” Breitner
>   mail at joachim-breitner.dehttps://www.joachim-breitner.de/
>   XMPP: nomeata at joachim-breitner.de • OpenPGP-Key: 0xF0FBF51F
>   Debian Developer: nomeata at debian.org
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170528/a06c6573/attachment.html>


More information about the ghc-devs mailing list