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

Graham Fawcett graham.fawcett at gmail.com
Thu Apr 17 10:51:22 EDT 2008

On Thu, Apr 17, 2008 at 10:38 AM, Bertram Felgenhauer
<bertram.felgenhauer at googlemail.com> wrote:
> 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).

Ah, I was looking at GHC 6.8.2 sources, but I may have been running
6.6.1. PEBKAC, sorry for the noise.


More information about the Haskell-Cafe mailing list