[Haskell-cafe] http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/Distribution-Simple.html

Hi, According to this page: http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/Distribution-Sim... there's an available toplevel declaration named: autoconfUserHooks in Distribution.Simple. However: ghci --version The Glorious Glasgow Haskell Compilation System, version 6.8.2 ghci Prelude> :m +Distribution.Simple Prelude Distribution.Simple> :t autoconfUserHooks <interactive>:1:0: Not in scope: `autoconfUserHooks' What would the experienced Haskell programmer do in such situation? Is there some way to ask ghci (or ghc) to list all available declarations, in a way that I could '| grep' it or save it to a file? Can I ask ghci to look for a declaration inside all available modules in all available packages? Thanks, Maurício

On Thu, Nov 6, 2008 at 7:59 AM, Mauricio
Hi,
According to this page:
http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/Distribution-Sim...
there's an available toplevel declaration named:
autoconfUserHooks
in Distribution.Simple. However:
ghci --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
ghci Prelude> :m +Distribution.Simple Prelude Distribution.Simple> :t autoconfUserHooks <interactive>:1:0: Not in scope: `autoconfUserHooks'
What would the experienced Haskell programmer do in such situation? Is there some way to ask ghci (or ghc) to list all available declarations, in a way that I could '| grep' it or save it to a file? Can I ask ghci to look for a declaration inside all available modules in all available packages?
Thanks, Maurício
You can try the :browse command. -- gwern

According to this page:
http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/Distribution-Sim...
there's an available toplevel declaration named:
autoconfUserHooks
in Distribution.Simple. However:
ghci --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
ghci Prelude> :m +Distribution.Simple Prelude Distribution.Simple> :t autoconfUserHooks <interactive>:1:0: Not in scope: `autoconfUserHooks'
(...)
You can try the :browse command.
But I understand that :browse only shows already loaded modules, or a given list of modules. The whole point is that the declaration I'm looking for is not anywhere I can find it (except in the documentation).

The docs in latest are for 6.10.1 at this point, I don't think that function is in 6.8.2: http://www.haskell.org/ghc/docs/6.8.2/html/libraries/Cabal/Distribution-Simp... -Ross Maurício wrote:
According to this page:
http://www.haskell.org/ghc/docs/latest/html/libraries/Cabal/Distribution-Sim...
there's an available toplevel declaration named:
autoconfUserHooks
in Distribution.Simple. However:
ghci --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
ghci Prelude> :m +Distribution.Simple Prelude Distribution.Simple> :t autoconfUserHooks <interactive>:1:0: Not in scope: `autoconfUserHooks'
(...)
You can try the :browse command.
But I understand that :browse only shows already loaded modules, or a given list of modules. The whole point is that the declaration I'm looking for is not anywhere I can find it (except in the documentation).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Gwern Branwen
-
Mauricio
-
Maurício
-
Ross Mellgren