[Haskell-cafe] export question (GHC.Handle)

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Thu Apr 17 10:38:04 EDT 2008

Graham Fawcett wrote:
> I notice in the source for GHC.Handle that certain functions (e.g.
> fdToHandle_stat) are in the export list, but are not actually exported
> (at least, it seems you cannot import them). What mechanism causes
> these functions to be "hidden", and are they still accessible in some
> way?

which ghc version are you using, and which sources are you looking at?

    import GHC.Handle (fdToHandle_stat)

works fine in ghc 6.8.2. In the base library shipped with ghc 6.6.1,
it wasn't exported (or even defined).



More information about the Haskell-Cafe mailing list