[GHC] #1770: GHCi should know about itself,
so that .ghci can be portable
GHC
trac at galois.com
Mon Jun 30 08:01:26 EDT 2008
#1770: GHCi should know about itself, so that .ghci can be portable
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone: 6.10 branch
Component: GHCi | Version: 6.6.1
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
-----------------------------+----------------------------------------------
Changes (by claus):
* status: new => closed
* resolution: => fixed
Comment:
New developments:-) Simon's new `ghc-paths` package
{{{
Prelude> :browse GHC.Paths
docdir :: FilePath
ghc :: FilePath
ghc_pkg :: FilePath
libdir :: FilePath
}}}
makes most of this possible, eg
{{{
Prelude> :cmd return $ ":!"++GHC.Paths.ghc++" +RTS --info"
[("GHC RTS", "Yes")
,("GHC version", "6.9.20080514")
,("RTS way", "rts_thr")
,("Host platform", "i386-unknown-mingw32")
,("Build platform", "i386-unknown-mingw32")
,("Target platform", "i386-unknown-mingw32")
,("Compiler unregisterised", "NO")
,("Tables next to code", "YES")
]
}}}
see
[http://www.haskell.org/haskellwiki/GHC/GHCi#Package_and_documentation_lookup_in_GHCi
.2C_via_ghc-paths the GHCi haskellwiki page] for further examples.
`has` and `exists` would still be nice to have, and conditional GHCi
command definitions are still painful, but the basic functionality is
there.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1770#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list